Former military dictator Pervez Musharraf will run for a seat in Pakistan’s parliament in national elections on July 25, his party has announced.

The move comes after the country’s Supreme Court conditionally allowed the 74-year-old to return from Dubai, where he has been living in self-exile to avoid arrest on criminal charges.

Mr Musharraf’s party said he will campaign for a seat representing the northern town of Chitral.

Imran Khan is hoping to become Pakistan's prime minister (Stefan Rousseau/PA)Imran Khan is hoping to become Pakistan’s next prime minister (Stefan Rousseau/PA)

Also on Saturday, the party of popular longtime opposition politician Imran Khan said he will run for a seat in the National Assembly, which was dissolved on May 31 upon completing its five-year term. Mr Khan is seeking to become the next prime minister.

Mr Khan’s party is expected to face a tough challenge from candidates backed by former prime minister Nawaz Sharif, who was disqualified in July by the Supreme Court on corruption charges. Mr Sharif himself cannot participate in the vote as he has been disqualified from holding public office.

Cameron meets Prime Minister Nawaz Sharif Of PakistanFormer Pakistan prime minister Nawaz Sharif cannot take part in the election because he is disqualified from holding public office (Oli Scarff/PA)

The party of former president Asif Ali Zardari is also fielding candidates across the country in hopes of getting a majority in parliament.

Mr Zardari has said he will run for a seat representing southern Sindh province.

PM Brown – Joint <a href=News Conference ">Former resident Asif Ali Zardari has said he will run for a seat in southern Sindh province (Matt Dunham/PA)

The July 25 elections for seats in the National Assembly and four provincial legislatures will be supervised by the interim government of caretaker Prime Minister Nasir-ul-Mulk, a former chief justice who has said he will ensure free and fair elections.

The party that wins a majority in parliament will name the next prime minister.

Most of Pakistan’s political parties want Mr Musharraf arrested.

He has not set any date for his return, but the court wants him back before June 13 to avoid arrest in connection with several criminal cases pending against him.

Mr Musharraf seized power in 1999 by ousting the government of Mr Sharif. In 2008, he was forced to resign after the party of former prime minister Benazir Bhutto came to power.