In happier times, PM Nawaz Sharif and Gen Pervez Musharraf

Events began when Gen Musharraf, on a visit to Sri Lanka, received word that Mr Sharif and intelligence chief General Ziauddin, secretly meeting in Islamabad, were to move against him that very day.

The sacking would be presented as a "retirement" and Gen Ziauddin would step into the most powerful job in the military.

In response, Gen Musharraf raced to Colombo airport boarding a Pakistan International Airlines flight to Karachi.

Back in Islamabad army chiefs loyal to Gen Musharraf began to mobilise troops stationed in nearby Rawalpindi.

Watched by foreign journalists, troops seized the state TV station

Suspecting that something was up, Mr Sharif and Gen Ziauddin realised they had to prevent Gen Musharraf from returning.

At about 1600, the prime minister's office announced Gen Musharraf's retirement.

It was the excuse the army high command needed to react, and an hour later troops from 111 Brigade of the 10th Corps were on their way to Islamabad.

House arrest

As troops poured onto the streets of the capital, the 111 Brigade stormed the state television station in Islamabad and shut down the signal.

At Mr Sharif's residence, troops disarmed the guards and entered the home.

Mr Sharif refused to resign or rescind his orders to sack the army chief of staff, so he was escorted from the building and placed in a guest house close to the airport.

Troops surrounded Karachi airport where Gen Musharraf was landing

But one man was still needed to complete the coup, and he was still in the air.

Gen Musharraf's flight approached Karachi airport at about 1830. But air traffic control refused permission for the plane, holding some 200 passengers, to land.

According to charges later laid against Mr Sharif, air traffic controllers ordered the flight to Nawabshah in Sindh province where, it is believed, the prime minister had despatched his own jet and security team to take the general into custody.

National address

Smelling a rat, Gen Musharraf apparently ordered the pilot to ignore the order and continue circling Karachi, despite the fact that fuel was running low.

The general is said to have personally spoken with air traffic controllers, demanding the right to land.

The speed of the coup left media outlets struggling to keep up

Gen Musharraf later said the plane had only seven minutes of fuel remaining.

As the general was whisked away from the airport, officers across the nation reported that the coup was virtually complete.

They controlled the TV stations, administrative buildings, the power and communications infrastructure - and had the entire cabinet under guard.

At 2215 the army restored television broadcasts and minutes later an announcement ran across the bottom of the screen stating that Prime Minister Nawaz Sharif had been dismissed.

At 0250 on Wednesday morning Gen Musharraf addressed the nation in a pre-recorded message, bringing the Sharif era to a close.