Wednesday, October 13, 1999 Published at 23:20 GMT 00:20 UK
World: South Asia
Pakistan's coup: Why the army acted
Less than four months after visiting the Kashmir front and congratulating the head of the army General Pervez Musharraf, Prime Minister Nawaz Sharif finds himself deposed by the same man.
Within months he amended the constitution to prevent the president from sacking an elected government and then turned his attention to the chief justice Sajjad Ali Shah.
The judge's dismissal came after he attempted to bring charges against the prime minister, who had failed to answer allegations of corruption.
Then in October 1998, possibly emboldened by his successes against the judiciary, Nawaz Sharif challenged the military establishment.
According to reports from the time, army chief and prime minister held a stormy meeting and, for the first time ever, it was the general who chose to quit.
Mr Sharif moved quickly and appointed Pervez Musharraf, promoted over the heads of two more senior military figures.
Regional analysts say that he chose Gen Musharraf not only to show his own grasp over the military but also to put in place a man he believed would be unable to build a powerbase because he did not belong to the dominant Punjabi-officer class in the Pakistani army.
While the military allowed these machinations to take place, the popularity of the Sharif government was plunging amid an economic slump - foreign debt totalling $32bn - and a law and order crisis.
Hamid Gul, a retired general, accuses Mr Sharif of having presided over an administration which had failed to deliver the goods.
"Sharif turned out to be a great destroyer of national institutions," he told the BBC.
"Look at what he did to the judiciary.
"He stripped them of power, put a set of judges against the chief justice, did the same to the press.
"He gagged the parliament and finally he wanted to do the same to the army."
But the turning point was this year's Kashmir crisis, where the Pakistani military believed they could finally score a significant victory over India.
India's leaders celebrated what they saw as a victory while some of Sharif supporters accused senior Pakistani generals of reckless adventurism.
In an interview with the BBC, Gen Musharraf made clear that all the politicians had been "on board" when the offensive began. He was not going to be blamed.
"A lot of people in the military are unhappy about the fact that after many years, in fact for the first time probably, we had the Indians where we wanted them militarily in Kargil," she said.
"There is a feeling in the military that had there been proper input into this decision, then maybe the decision (of Sharif) to go to Washington might not have happened."
'Coup attempt against army'
Mr Sharif was now faced with increasing tension in his own party, the military and among the people.
Critics like Gen Gul say that his attempt to consolidate power and oust Gen Musharraf was a "coup attempt against the army", the last desperate act of a man under siege.
"The army acted in the national interest and thaat is why the nation is rejoicing." Maleeha Lodhi, editor of the Pakistani newspaper, the News, said that the army's intervention came as it realised that Sharif's popularity had reached an all time low.
"Questions of legitimacy were being asked as the government had failed to deliver even the most fundamental of policies such as law and order," she said.
"I think this (coup) is not unlike military interventions in the past which have occurred when the civilian government has been ineffectual and inept."