During this time, the empire had two wars with the Japanese (the first against the Japanese pirates took place in southeastern China; the second against the armies of Toyotomi Hideyoshi that invaded Korea), and one war with the Portuguese of Macao.
