China's top official in charge of relations with Taiwan has returned to Beijing, hailing his visit to the self-ruled island as "historic," despite violent protests that forced him to cancel several meetings.

The visit by Zhang Zhijun, director of China's Taiwan Affairs Office, marked the first such trip by such a senior mainland official in 65 years since the Nationalists fled after losing a civil war to China's Communists in 1949.

Throughout his four-day tour of the island, Zhang was greeted by protesters, including at the high-speed train station in the pro-independence southern port of Kaohsiung on Friday. There hundreds of demonstrators gathered, some waving placards reading "Communist Zhang Zhijun, get the hell back to China."