In July 1555,
Hu Zongxian, a native of Huizhou like Wang Zhi, was assigned to deal with the
wokou problem. Unlike his hardline predecessors like Zhu Wan, Hu Zongxian was open to liberalizing trade in order to put an end to the piracy. Hu Zongxian sent envoys to Japan for the dual purpose of requesting assistance from Japanese authorities, and to establish contact with Wang Zhi to entice him to surrender. As a sign of goodwill, he also released Wang Zhi's family from prison and had them moved to his headquarters at
Hangzhou under his care and supervision. Wang Zhi and Mao Haifeng met the envoys on the Gotō Islands where they explained that there was no single authority in Japan that could command the Japanese pirates to cease their activities. On the other hand, they were enticed by the opportunity for their trade to be legalized, and offered to fight other pirates for the Ming in return for a pardon of their crimes and the permission to present tribute. Hu Zongxian relayed the message to the imperial court in Beijing, who responded with skepticism and indignation: tributes could only be presented by foreigners so Wang Zhi's request had seditious implications to the Ming government. In any case, the court did not object to Wang Zhi's offer to fight the pirates on their behalf, and soon Mao Haifeng started clearing pirate nests on
Zhoushan Island. During the meeting on the Gotō Islands, Wang Zhi also warned that
Xu Hai, a pirate leader in his consortium, was on his way to raid China and Wang was not able to stop him in time. Peace efforts had to be put on hold as Hu Zongxian dealt with Xu Hai's raid in 1556. During the raid, Xu Hai was shocked to hear that Wang Zhi was negotiating his own surrender with Hu Zongxian, and Hu Zongxian was able to use this to manipulate Xu Hai into betraying his allies. Eventually, the raid was put down with Xu Hai and other leaders killed, and negotiations between Wang Zhi and Hu Zongxian could resume. On 17 October 1557, Wang Zhi arrived at Cengang () in
Zhoushan Island with a large trading fleet sent by
Ōtomo Sōrin, who was buoyed by the prospect of China opening trade with Japan. The local officials feared this was another
wokou invasion and readied the troops. Additionally upon their arrival, Wang Zhi learned of a plot by Hu Zongxian's lieutenant
Lu Tang to bribe the Ōtomo men to present Wang Zhi in ropes, which made the merchant-pirates suspicious of Hu's intentions. Hu Zongxian was only able to allay their fears by sending a high official to the pirates as hostage. Then Wang Zhi laid down his terms for surrender: he sought an imperial pardon, a naval commission, and that ports be open for trade; in return he offered to patrol the coast and persuade the raiders to return to the islands through force if necessary. Hu Zongxian was prepared to send a
memorial to the throne about Wang Zhi's petition, but the political climate had quickly changed against opening trade. Hu Zongxian's political patron
Zhao Wenhua, the major pusher of an appeasement policy, had been brought down by charges of embezzlement. Hu Zongxian himself was the target of a rumour that he received bribes from Wang Zhi and the Ōtomo to pardon their crimes and accede to their requests. The political situation did not allow Hu Zongxian to ask the emperor that Wang Zhi be pardoned. Instead of dirtying his own hands, Hu Zongxian told Wang Zhi to present his petition to the
investigating censor Wang Bengu (), a political hardliner, in
Hangzhou. In December, confident in his prospects and his invulnerability, Wang Zhi made landing at Hangzhou. There he was accorded respectable treatment by the authorities, who feared antagonizing his followers, while they figure out what to do with him. During this time Hu Zongxian asked Wang Zhi to help manufacture matchlocks for the Ming army, which led to the weapon being widely used in China. Finally in February next year, Wang Bengu had Wang Zhi put in prison, where he was still given the luxuries of novelties, books, and healthy foods. Wang Zhi believed this was a temporary arrangement and remained hopeful for a pardon until 22 January 1560, when an imperial edict handed down the death sentence. He was brought to the execution grounds in a
palanquin, and only upon arrival did he realize he was to be executed. He called for his son, gave him a hairpin as a memento, then held him in embrace, crying: "Never have I imagined that I would be executed here!" He was then beheaded before an audience. His wife and children were reduced to the status of slaves. Mao Haifeng had Hu Zongxian's hostage dismembered and gave up hopes for peace; the
wokou raids continued until 1567. ==Legacy==