Chiang Pin-kuang, Chen's Taiwanese counterpart, also declared the trip a success.

"Our efforts weren't wasted," he said. "We will continue to strive for our ultimate goal of peace across the strait and a win-win economic situation."

Protests

During Chen's five-day trip, the two sides avoided discussing thorny political issues that had kept them from talking for decades.

In video

Visit fuels Taiwanese fury

Chen signed a landmark trade deal expanding aviation and shipping links across the Taiwan Strait, agreed to exchange rare animals with Taiwan and to work on measures designed to boost co-operation on food safety issues.

"We will do our best to contribute to the welfare of the people across the strait," he said.

Chen also thanked the thousands of police deployed to protect him during his mission in Taipei which sparked daily street protests that were often violent.

Police used water cannons to disperse the crowd, and dragged away those shouting anti-China slogans.

"We are Taiwanese, not Chinese," said one protester.

"So we are fighting for freedom. We want our own people to be here, and not China to take over everything. Everyone is afraid of China."

On Thursday Chen met Ma Ying-jeou, Taiwan's president, to exchange gifts and have a brief chat amid anti-China protests against efforts by Ma to seek closer ties with the mainland.

The meeting was brought forward by several hours and kept to just five minutes to try to avoid violent protests the night before that had trapped Chen in a Taipei hotel for a few hours.