Pakistan’s former president Pervez Musharraf was buried on Tuesday in his family’s hometown, the southern port city of Karachi, a day after a special plane transported his body from the United Arab Emirates where he died at the weekend.

About 2,500 mourners, including Musharraf’s family and relatives; senior politicians and retired and serving military officials, attended the funeral at a military cemetery inside a high-security area in Karachi, the capital of southern Sindh province.

Mr Musharraf, who died at age 79, seized power in a bloodless coup in 1999 by ousting the elected government of former prime minister Nawaz Sharif, whose younger brother Shahbaz Sharif is now the country’s prime minister.

Amir Muqam, a senior leader from Sharif’s party, attended the funeral. Musharraf’s coffin was draped in the national flag in a sign of respect, though the ceremony was not a state funeral.

General Sahir Shamshad Mirza, the chairman of the Joint Chiefs of Staff Committee, and former army chief, Qamar Javed Bajwa, also attended.

“General Pervez Musharraf always put the interests of Pakistan first, and he even put his life at risk by waging a war against militancy,” Moinuddin Haider, a retired army general, told reporters.

Several politicians and government officials also paid glowing tributes to Mr Musharraf.

During his tenure as president, Mr Musharraf made Pakistan a key ally of Washington in the war on terror after the September 11 2001 attacks in the United States.

Pakistan Obit Pervez Musharraf
Pervez Musharraf lived the latter part of his life in Dubai after being ousted from power in Pakistan (AP Photo/B.K. Bangash, File)

That angered Pakistani and foreign militants who at least twice tried to assassinate him in the city of Rawalpindi in 2003, but he escaped unhurt.

Mr Musharraf lost his grip on power in 2008 when the party of the former president, Asif Ali Zardari, the Pakistan People’s Party, defeated his long-time political allies in parliamentary elections.

Mr Zardari later forced him to resign. The new government instigated a treason case against Mr Musharraf — but allowed him to leave the country on bail to travel to Dubai in the UAE in 2016 for medical treatment while the proceedings were underway.

Mr Musharraf remained in Dubai after being sentenced to death for treason at home in 2019, although the death penalty was later overturned by another court.

However, prime pinister Sharif’s government last year said Mr Musharraf would not be arrested if his family wanted to bring him back home.

But Mr Musharraf’s doctors and his family said adequate medical treatment for him was unavailable in Pakistan.