Ousted Pakistani leader Nawaz Sharif is returning to Pakistan despite facing a 10-year jail sentence for corruption.

Sharif and his daughter Maryam both face arrest when they arrive back in Lahore from London on Friday.

The three-term PM was ousted from office last year after a corruption investigation. He was sentenced in absentia to 10 years last week.

He has accused Pakistan's security establishment of conspiring against him ahead of July 25 elections.

"There was a time when we used to say a state within a state, now it's a state above the state," he told supporters of his Pakistan Muslim League-Nawaz (PML-N) party in London on Wednesday.

"Despite seeing the bars of prison in front of my eyes, I am going to Pakistan."

Thousands of supporters are expected to flock to the airport to greet Mr Sharif, who was convicted by an anti-corruption court last week over his family's ownership of four luxury flats in London.

Hundreds of party activists in Lahore are reported to have been detained ahead of his return.

He has called for a "mass gathering of the people".

Sharif, 67, has been one of the country's leading politicians for most of the past 30 years. His party has blamed the military for being behind his conviction, saying it is going after the PML-N for its criticism of the security establishment and the party's policy to improve ties with India.

In May, the Dawn newspaper published an interview with Sharif in which he questioned the wisdom of "allowing" Pakistani militants to cross the border and kill 150 people in Mumbai, referring to attacks in the Indian business capital in 2008.

The military, which has ruled Pakistan for about half of its 70-year post-independence history, has denied it has any "direct role" in the elections or the political process.

Although he was disqualified from standing in the upcoming election by the Supreme Court, Sharif remains one of the most popular politicians in Pakistan, especially in Punjab, the most populous and electorally significant province.

Last week the National Accountability Bureau (NAB) court ordered Sharif to serve 10 years for owning assets beyond his income and one year for not co-operating with the NAB. The sentences are to be served concurrently.

His daughter, Maryam Nawaz Sharif, received seven years for abetting a crime and one year for not co-operating - again to run concurrently - while son-in-law Safdar Awan was given a one-year sentence for not co-operating.

Sharif and Maryam also received fines of 8m ($10.6m) and 2m respectively. Their lawyers say they will appeal against the verdict but the pair will have to surrender to the NAB before the appeal can be filed.

The case, known as the Avenfield Reference, relates to a number of properties in the UK capital.

The Panama Papers leak in 2015 revealed several of Sharif's children had links to offshore companies, which were allegedly used to channel funds and buy foreign assets - including luxury flats in Avenfield House, on London's Park Lane.

His family, however, insist they legitimately acquired the four properties.

As part of the ruling, the court ordered they be confiscated for the federal government.