A panda that China gifted to Taiwan 14 years ago as a symbol of what were then warmer ties died on Saturday, after suffering a spate of seizures, Taipei Zoo said.
Tuan Tuan and his breeding mate Yuan Yuan were given to Taiwan by Beijing in late 2008, at a time when relations between the two were more cordial.
China views Taiwan as part of its territory and has vowed to one day bring the self-ruled democratic island into the fold, by force if necessary.
"Our medical team has confirmed that Tuan Tuan's heart stopped beating at 13:48 (0548 GMT)," the zoo said in a short statement.
The panda was put under deep anaesthesia to take CT scans earlier Saturday, and the team decided to "let Tuan Tuan continue to sleep" after the results indicated his condition was "irreversible" and that he could no longer "live a quality life", zoo officials said
"It would have been extremely painful and risky for Tuan Tuan to resuscitate him from the anaesthesia," said spokesman Eric Tsao.
Vets first noticed Tuan Tuan, 18, was ill in August, when he began suffering seizures and appeared increasingly unsteady and lethargic.
Scans showed he had a brain lesion and he was placed on anti-seizure medication.
The zoo suspected Tuan Tuan had a tumour and he was moved into palliative care last month.
The seizures returned in the past few days, more frequent than before, and medicine could not ease the symptoms.
Fans mourned Tuan Tuan's death on social media, while Taipei mayor Ko Wen-je thanked the panda in an Instagram post for "bringing happiness to Taiwanese people and making Taipei Zoo more wonderful".
Taiwan's top China policy-making body, the Mainland Affairs Council (MAC), hailed the panda's role in improving ties with Beijing.
Tuan Tuan "let everyone know more about giant pandas and help promote exchanges between the two sides... MAC is saddened that he has passed away," it said in a statement.
The panda couple -- whose names combined mean "reunion" or "unity" -- had become huge stars in Taiwan and Yuan Yuan has given birth to two female cubs.
China has long deployed "panda diplomacy" and the gifting of Tuan Tuan and Yuan Yuan was seen as endorsing the presidency of then Beijing-friendly leader Ma Ying-jeou.
Beijing only loans pandas to foreign zoos, which must usually return any offspring within a few years of their birth to join the country's breeding programme.
But Taiwan was granted an exception as part of a brief charm offensive China launched in the late 2000s, with Beijing fully gifting both Tuan Tuan and Yuan Yuan and any offspring.
Relations between China and Taiwan have been on ice since 2016 with Beijing severing official communications and government visits between the two sides scrapped.
© Agence France-Presse