Homa Hoodfar arrived in Montreal this morning to hugs and cheers after being detained in an Iranian prison since June.

"It's wonderful to be home and united with family and friends again," Hoodfar said at a news conference at Pierre Elliott Trudeau Airport, as she smiled and clutched the hand of her niece, Amanda Ghahremani.

Hoodfar said she didn't believe she was actually on the way home until she was on the plane out of Iran.

"Actually, I didn't feel I would be released until I was in the jet,'' she said. "As they say, in Iran, nothing is possible and everything is possible."

Hoodfar thanked the federal government and Oman for helping to secure her release.

"I've had a bitter seven months and the detention has left me weak and tired," she said.

'Dabbling in feminism'

Homa Hoodfar: 'It's wonderful to be home'1:46

Hoodfar, a 65-year-old Iranian-Canadian, is known for her research on Muslim women in various regions of the world.

She travelled to Iran in February to see family and do academic research but was arrested in March, just as she was set to return to Montreal.

She was released on bail and then rearrested in early June.

She was accused by Iranian authorities of collaborating with a hostile government against national security and with propaganda against the state.

Those charges, however, were never presented to her lawyer. Instead, they were published in the Iranian press, which quoted the prosecutor as saying Hoodfar was "dabbling in feminism."

Detention took a toll

Hoodfar wasn't sure she'd be released0:39

Hoodfar left Iran on Monday and has spent the past few days in Oman.

Friends and family were on hand for an emotional welcome.

"We are overjoyed," said Theresa Bianco, a friend from Concordia who came to the airport with flowers for Hoodfar.

"In many ways this has been surreal."

Her family had feared the worst in recent weeks, saying her health was deteriorating while in solitary confinement.

​Hoodfar's release came following Foreign Affairs Minister Stéphane Dion's meeting with his Iranian counterpart at the United Nations in New York last week.

homa hoodfar oman

Homa Hoodfar, seen here in a picture posted to Twitter by Oman News, travelled to Oman after leaving Iran on Monday. (Oman News)

In a statement, Prime Minister Justin Trudeau also thanked Italy, Switzerland and Oman for their help in the matter. 

​Canada has had no formal diplomatic relations with Iran since September 2012, when the former Conservative government closed its embassy in Tehran and expelled Iranian diplomats from Ottawa.

Iran does not recognize dual nationalities, meaning those detained cannot receive consular assistance. In previous cases, dual nationals have faced secret charges in closed-door hearings in Iran's Revolutionary Court, which handles cases involving alleged attempts to overthrow the government.

Several dual nationals have been arrested in the year. Analysts have suggested Iranian hard-liners hope to use them as bargaining chips with the West.

With files from Alison Northcott and The Canadian Press