Wanli's Personal Rule
Zhang Juzheng died in 1582. Freed from his tutor, the emperor soon turned against his memory. Zhang was posthumously disgraced, his property was confiscated in 1584, and his family was treated harshly. Many of his measures were reversed.
In the early years of his personal rule Wanli was still an attentive ruler who met his ministers and took part in the business of government. The economy remained strong, and the empire fought three major campaigns in the 1590s, known as the Three Great Campaigns of Wanli.
The Ordos Campaign
In 1592 Pubei, a Ming officer of Mongol origin commanding at Ningxia in the northwest, rebelled with the support of Mongol allies. A Ming army besieged Ningxia and put down the rising within the year.
The Imjin War in Korea
In 1592 Toyotomi Hideyoshi, the ruler of Japan, invaded Korea, a Ming tributary state. Wanli sent troops to Korea's aid and ordered the defences of Liaodong strengthened. The first Ming force was defeated, but a larger army under Li Rusong retook Pyongyang in 1593, and the war settled into a long period of negotiation.
Japan invaded again in 1597. Hideyoshi died in 1598, and the Japanese commanders began to withdraw. At the Battle of Noryang at the end of that year, the combined fleets of the Ming commander Chen Lin and the Korean admiral Yi Sun-sin attacked the retreating Japanese; Yi was killed in the battle. The war ended with the Japanese evacuation of Korea.
The Bozhou Campaign
The third campaign was fought against Yang Yinglong, the hereditary chieftain of Bozhou in the southwest, whose forces had defeated a Ming army. In 1600 a large expedition under Li Hualong captured his mountain stronghold, and Yang Yinglong took his own life.