Hundreds of Iranian women watched their team's heartbreaking exit from the World Cup in Russia today.

The female fans were able to attend the game at the Mordovia Arena, Saransk, Russia - despite been banned from stadiums during matches at home.

Iran drew 1-1 with Portugal, leading to their elimination from the competition after Spain avoided defeat in the other group match against Morocco.

However, Iran's ISNA news agency said women were allowed to watch the match in Tehran on a big screen in a Tehran stadium - despite the ongoing ban.

Hundreds of Iranian women witnessed their side's agonising exit from the World Cup after drawing with Portugal at the Mordovia arena in Saransk, Russia this evening

Women have been banned from attending football matches with men in Iran since the 1979 Islamic revolution in order to protect them from hearing bad language

Large numbers of Iranian women were seen at their three World Cup games in Russia

Since Iran's 1979 Islamic revolution, women have been barred from attending male soccer matches, based partly on the idea that they should be shielded from hearing male fans swearing and cursing.

One official said: 'Those individuals and families who have bought tickets, can attend the stadium to watch the World Cup game live.'

Iran's pragmatist President Hassan Rouhani has repeatedly criticised the ban but has failed to get it removed because of resistance from powerful hardliners in the clerical and security establishment.

It is only the second time in almost 40 years that Iranian women have been able to watch football in Tehran's Azadi stadium, Iran's biggest with 120,000 seats.

At home, authorities allowed women to watch the match in Russia on a big screen inside a stadium in Tehran, despite the objections of Islamic leaders

The stadium's doors were opened for the first time since 1979 to women fans on June 20 to watch Iran's World Cup match against Spain, when hundreds of women attended.

But Iran's hardline general prosecutor Mohammad Jafar Montazeri on Sunday criticised the move, Iranian media reported, saying he was 'ashamed' of what had happened in the stadium.

'Some women removed their head scarves and started to sing and dance ... this is disrespect to our martyrs and betrayal of the revolution,' he said. 'They are wrong if they think that they can implement their satanic policies.'

Videos and pictures posted on social media showed women fans singing and waving Iran's flag at the stadium.

Iran's president Hassan Rouhani has said he would like to see the ban on women in stadiums lifted although he faces strong opposition from Islamic hardliners

Iran almost knocked Portugal out of the competition with an effort in the game's dying seconds

'I am so delighted to be here. It is like a dream come true,' said student Mona Hosseini, 17, who went to the stadium with her family.

Despite various campaigns launched by women in the recent years, dozens of women fans have been arrested in Iran for trying to enter the stadium to watch men's games.

The officials did not say whether the ban would be permanently lifted.

'I love football. I love watching it at the stadium. I hope our officials lift the ban forever,' Nazanin Sepehrian, 23, told Reuters by phone.

'I watched the previous World Cup match against Spain at the Azadi stadium as well. It was so much fun,' she said.