The Longqing Emperor inherited a state weakened by corruption and mismanagement in the last years of his father's reign, and the new court moved quickly. Officials whom Jiajing had dismissed, banished or imprisoned were recalled. Among them was the scholar-official Hai Rui, who had been jailed in 1566 for a memorial criticising the old emperor. The Daoist priests whom Jiajing had favoured in his search for immortality were driven from the court.
In 1567 the court lifted the ban on private overseas trade. Chinese merchants were allowed to sail from the port of Yuegang in Fujian to South-East Asia, although direct trade with Japan remained forbidden. The coasts of Fujian and Zhejiang, raided by pirates under Jiajing, were given stronger defences. The legal trade that followed carried Jingdezhen porcelain abroad in growing quantities, including the export blue and white that collectors call kraak porcelain.
On the northern frontier, the general Qi Jiguang, who had made his name fighting the coastal pirates, was given command of the defences east of Beijing in 1568 and began rebuilding the Great Wall there with brick watchtowers.
At court, the eunuch Meng Chong dominated the inner palace. In 1567 the senior grand secretary Xu Jie urged the emperor to curb the power of the eunuchs, but he retired the following year, and attempts to check corruption among officials fell short.
Peace with the Mongols
For decades the Mongols under Altan Khan (also written Anda Khan) had raided northern China; in 1550 they had broken through the Great Wall and reached Beijing. In 1570 Altan's grandson Bahan Naji, angry that his grandfather had taken the bride promised to him, rode south and surrendered to the Ming at Datong.
Many expected the Ming to hold him hostage or execute him. Instead, on the advice of the grand secretaries Gao Gong and Zhang Juzheng, the court received him with honour and gave him an official title. Altan negotiated for his return and halted his raids. In 1571 he accepted the Ming title Shunyi Wang, "Obedient and Righteous Prince", and frontier markets were reopened where Mongol horses were traded for Chinese silk.
The peace was the work of the emperor's ministers more than of the emperor himself, but it lasted for decades and gave the Ming the chance to rebuild the northern defences.