 Yongle also used woodblock printing to spread Chinese culture , and used the military ( especially cavalry ) to expand China 's borders . This included the brief occupation of Vietnam , from the initial invasion in 1406 until the Ming withdrawal in 1427 as a result of protracted guerrilla warfare led by the subsequent founder of the Vietnamese Lê dynasty . 
