Following the fall of the Ming dynasty in Beijing in 1644, Koxinga (Zheng Chenggong) pledged allegiance to the Yongli Emperor of Southern Ming and attacked the Qing dynasty along the southeastern coast of China. In 1661, under increasing Qing pressure, he moved his forces from his base in Xiamen to Taiwan, expelling the Dutch in the following year. Some analysts consider his regime to be loyal to the Ming, while others argue that he acted as an independent ruler and his intentions were unclear.