It is the second time a civilian government has handed power to another since the country became independent in 1947.
As Mr Khan prepares to be sworn in as prime minister on Saturday for a mandate lasting five years, here's everything you need to know about the cricket icon-turned-politician.
Who is Imran Khan?
Born Imran Ahmad Khan Niazi in 1952, he is now known simply as Imran.
The 65-year-old cricket legend stood and was defeated in the 2013 elections, coming third.
Many saw this election as his last chance to fulfil his ambition of becoming prime minister.
He founded the Pakistan Tehreek-e-Insaf party in 1996, with many hailing him as a hero for his sporting prowess and vows to crack down on corruption.
A sporting hero
Mr Khan captained his team to victory in the 1992 cricket World Cup - an achievement that saw the entire country erupt in celebrations of a magnitude rarely seen in Pakistan.
His encouragement to the team that they fight like "cornered tigers" that year has seen the phrase enter sporting mythology.
Despite his cricket career being well in his past, the hashtag #behindyouskipper became one of the highest trending hashtags on social media in Pakistan during the election, attracting messages of support from former international superstars including Wasim Akram and Waqar Younis.
The playboy
Six foot tall, urbane and with a voice that reveals his Oxford education, Mr Khan gained a reputation as a playboy and party animal during his sporting career.
He began to settle down when he married British heiress Jemima Goldsmith (pictured above) in 1995, a year before he founded his political party.
They had two children but divorced in 2004 after nine years together.
His second marriage to journalist and weather presenter Reham Khan lasted 10 months before he reportedly "divorced her by text message" in 2015.
In February this year, he married for a third time - to Bushra Maneka (below), a faith healer who treated him.
The young Imran
Mr Khan says he struggled to make friends when he first arrived in England in 1971. He endured racial slurs but says he was never physically beaten up.
In leaving Lahore, he left behind a childhood spent playing cricket with his four servants and life as a student at Aitchison College, known as the Eton of Pakistan.
He was distant from his father but close to his mother, whose family were known as the godfathers of Lahore Cricket Club - to the point that when people began to call him his mother's family name Khan, rather than Niazi, he let them.
His mother died of cancer in 1985 and he built a hospital in his home city in her honour; he has expanded this to Peshawar and also plans to build one in Karachi.
Politics
Broadly speaking, Mr Khan today is a pragmatist.
He is a political operator who merges conservative views with his history of living a liberal Western lifestyle.
Now a devout Muslim, he has abandoned western dress and is often seen dressed in an immaculate white shalwar kameez.
His conservative views include being critical of feminism and supporting strict blasphemy laws. He speaks of the scourge of "westoxified" elites in Pakistan.
He vows to eradicate corruption from the top of government, to be tough on terror and to fight poverty.
However, when pressed in the media, he rarely goes into detail.
His background of family wealth, being a public personality, railing against liberals and electing himself the voice of the forgotten everyman has prompted The Sunday Times to compare him to Donald Trump - a politician Mr Khan has called "ignorant and ungrateful".
Political controversy
Pakistan's powerful military had been accused of influencing the election to fall in Mr Khan's favour by censoring media coverage.
Mr Khan was rebuked by some for criticising NATO and has reportedly said the Taliban should be allowed to open an office in Pakistan to facilitate peace talks.
Meanwhile, he has also been the subject of a #MeToo claim in Pakistan.
His accuser, Ayesha Gulalai Wazir, is an MP from his own party. She alleges he sent her "inappropriate" text messages and has called for a parliamentary investigation.
He has denied the allegation.