As Mazuism spread, it began to absorb the cults of other local shamanesses such as the other two of Xianyou's "Three Princesses" and even some lesser maritime and agricultural gods, including Liu Mian and Zhang the Heavenly Instructor. By the 12th century, she had already become a guardian to the people of Qiaodou when they suffered drought, flood, epidemic, piracy, or brigandage. She protected women during childbirth and assisted with conception. As the patron of the seas, her temples were among the first erected by arriving overseas Chinese, as they gave thanks for their safe passage. Despite his Islamic upbringing, the Ming admiral and explorer Zheng He credited Mazu for protecting one of his journeys, prompting a new title in 1409. He patronized the Mazu temples of Nanjing and prevailed upon the Yongle Emperor to construct the city's Tianfei Palace; because of its imperial patronage and prominent location in the empire's southern capital, this was long the largest and highest-status center of Mazuism in China. During the Southern Ming resistance to the Qing, Mazu was credited with helping Koxinga's army capture Taiwan from the Dutch; she was later said to have personally aided some of Shi Lang's men in defeating Liu Guoxuan at Penghu in 1683, ending the independent kingdom of Koxinga's descendants and placing Taiwan under Qing control. The Ming prince Zhu Shugui's palace was converted into Tainan's Grand Matsu Temple, the first to bear her new title of "Heavenly Empress".