Former Pakistan Prime Minister Imran Khan leaves after appearing at the High Court in Lahore on March 17, 2023.
CNN  — 

He was once worshiped by millions, the star cricketer turned populist politician who promised to break the shackles of corruption, ushering Pakistan into a hopeful new era.

Yet the final days of Imran Khan’s political career tell a contrasting tale.

The former Pakistani prime minister was arrested at his home in the city of Lahore Saturday after he was found guilty of corruption and sentenced to three years in prison. Sitting in what his lawyers say is a fly-infested cell in an overcrowded jail about 80 kilometers west of the capital Islamabad, Khan has denied any wrongdoing and lodged an appeal.

But the verdict is likely to bring an end to his hopes of contesting future elections. On Tuesday, election authorities banned Khan from running for office for five years.

Khan alleges that Pakistan’s current government conspired with the country’s army chief to remove him from power – and that his arrest and disqualification are politically motivated.

And despite his ouster in a parliamentary no-confidence vote last year, Khan maintains widespread popularity in the country.

One of the few politicians to challenge Pakistan’s powerful military, he drew tens of thousands to nationwide rallies that became a fixture in the country’s volatile political scene.

Khan’s supporters – some armed with sticks and stones – marched through cities, chanting slogans against the ruling dispensation. Police, dressed in riot gear, retaliated with tear gas, sparking scenes of widespread unrest.

To his supporters, Khan was seen as a political martyr, someone they had vowed to defend till the very end. But the military responded with an extensive crackdown, arresting protesters, censoring journalists and forcing Khan’s aides to resign.

Since his detention Saturday, the streets of Pakistan remain calm, with no hint of upcoming unrest.

Analysts say Khan’s arrest following a yearlong showdown with the military sends a pointed message to the former prime minister and his supporters.

“The state has ways and means to discourage popular protest and street protest,” said prominent Islamabad-based columnist Arifa Noor. “Once the state starts to crack down people fear for their lives.”

Khan’s political rise

That one of Pakistan’s most popular politicians is sitting in a high security prison more commonly used to hold militants is illustrative of the country’s unpredictable modern history.

The South Asian nation of 220 million has, since its inception in 1947, struggled with political and social instability following a traumatic partition that hastily divided British India along religious lines into two independent countries.

It’s a country where militant attacks are frequent, poverty is rampant, and violence against women is widespread. No democratically elected leader has ever completed a full five-year term since its independence. Ruled for much of its 76 years by political dynasties or military establishments, analysts say decades of perceived corruption and nepotism disenfranchised swathes of its population, who were clamoring for a clean break from Pakistan’s past.

Imran Khan celebrates after winning the Cricket World Cup on March 25, 1992 in Melbourne, Australia.

Born in 1952 to an affluent family in Lahore, Khan, who received a prestigious education and a degree in philosophy, politics and economics from Oxford University, was seen as the country’s ticket to a clean and nationalist government.

He achieved international fame on the cricket pitch as the formidable captain of Pakistan’s national team, leading the country to its only World Cup victory in 1992. Two years later, Khan opened a cancer hospital and research center in memory of his mother, who died from the illness in 1985, elevating his profile and winning him accolades at home.

Imran Khan married British heiress Jemima Goldsmith in 1995. The couple, who have two sons, divorced in 2004.

His charismatic charm and playboy lifestyle made him a fixture in the tabloids when he married the British heiress and journalist, Jemima Goldsmith, who featured in photographs alongside her former husband and their two young sons attending political rallies.

As his influence in the country grew, Khan’s eyes were now set on politics.

He founded the Pakistan Tehreek-e-Insaaf (PTI), or the Movement for Justice, in 1996, winning a seat in Parliament in 2002. Khan, who had long since shed his playboy ways to become a much more openly religious figure, soared to new heights of popularity in 2014 when he led protests, accusing the victorious PML-N party of rigging polls.

Finally, after nearly two decades on the political sidelines, Khan was elected prime minister in 2018.

Vowing to eradicate poverty and corruption, he promised a “new Pakistan” to millions in the country.

Imran Khan addresses an anti-President Pervez Musharraf protest rally in Lahore on May 12, 2008.

Tumultuous tenure

Once in office Khan encountered multiple hurdles during his tenure as leader. From rising inflation to a global pandemic, his government grappled with record slumps in foreign exchange, pushing the nation to the brink of economic collapse.

Rising hostilities between Pakistan and neighboring India led to clashes between the two nuclear armed states in 2019, but diplomacy on both sides led to a simmering stalemate that lasted throughout Khan’s premiership. The following year, he received praise for his handling of the coronavirus pandemic after he swiftly closed borders and imposed lockdowns in an attempt to curb the spread of the disease.

But he sparked widespread international criticism in 2021 for his leniency toward the Taliban as their lengthy insurgency barreled towards victory in Afghanistan, instead blaming the United States on the