A former dentist, Alvi has been a key confidante of Imran Khan on both party and national issues
Pakistan's new President Arif Alvi was sworn in at a ceremony in Islamabad on Sunday, concluding the country's peaceful transfer of power to its new government after a turbulent election campaign.
His appointment further cements the ruling party's power after controversial polls in July - which were tainted by claims of military meddling and ballot rigging - saw former cricket champion Imran Khan elected prime minister.
Arif Alvi, a close ally of Khan and one of the founders of Khan's Pakistan Tehreek-e-Insaf (PTI) party, becomes Pakistan's 13th president, replacing Mamnoon Hussain.
A vote this week saw him elected by more than a thousand lawmakers from both houses of parliament and the four provincial assemblies.
Khan and his cabinet attended the ceremony led by Chief Justice Saqib Nisar, along with armed forces chiefs and senior Islamabad-based diplomats.
Alvi swore to "bear true faith and allegiance to Pakistan" and to carry out his duties "in the interest of the sovereignty, integrity, solidarity, well-being and prosperity of Pakistan."
A former dentist, Alvi has been a key confidante of Imran Khan on both party and national issues.
He served as the PTI's secretary general for eight years from 2006, and was elected an MP in the southern megacity of Karachi in 2013, winning re-election in the July vote.
A father of four and enthusiastic Twitter user, Alvi was shot and wounded during a protest against military dictator Ayub Khan in Lahore in 1969. He still has a bullet embedded in his right arm.
The election of the PTI marks the end of decades of rotating leadership between the ousted Pakistan Muslim League-Nawaz (PML-N) and the Pakistan Peoples Party (PPP), punctuated by periods of army rule.
But Khan and his cabinet face a myriad of challenges including a faltering economy, militant extremism, water shortages, and a rapidly growing population negating growth in the developing country.
Pakistani presidents wielded greater power before 2008, when President Asif Ali Zardari, the husband of assassinated premier Benazir Bhutto, took office and devolved most of his powers to prime minister Yousaf Raza Gilani.