In 1279 Zhang Hongfan of the Yuan attacked the Song navy in Yamen. Li Heng, who previously had captured Guangzhou, reinforced Zhang Hongfan. Some within the Song forces suggested that the navy should first claim the mouth of the bay, to secure their line of retreat to the west. Zhang Shijie turned down this suggestion in order to prevent his soldiers from fleeing the battle. He then ordered the burning of all palaces, houses and forts on land for the same reason.