Iranian authorities on Saturday ordered the arrest of two women after a viral video showed a man pouring yogurt on them for not wearing the hijab, AFP reported.

The footage, widely shared on social media in Iran, appeared to show two female customers, who were not wearing the mandatory headscarf, in a shop being assaulted by a man after a verbal altercation.

The man is then shown pouring a bucket of what appears to be yogurt on the two women's heads before he is confronted by the shopkeeper.

Authorities issued an arrest warrant against the man "on charges of committing an insulting act and disturbance of order", the judiciary's Mizan Online website reported.

However, arrest warrants were also issued for the two women for "committing a forbidden act" by removing their headscarves, the website said.

"Necessary notices have been issued to the owner of the shop where this happened in order to comply with legal and Sharia principles according to the regulations," it added.

Later on Saturday, Iranian President Ebrahim Raisi reiterated calls affirming that Iranian women should wear the hijab as a "religious necessity".

"Hijab is a legal matter and adherence to it is obligatory," he said, according to AFP.

Protests erupted across Iran last September, following the death of 22-year-old Mahsa Amini, who had been arrested by the Iranian morality police for failing to wear a headscarf.

The government crackdown on the demonstrations resulted on hundreds of people being killed, including dozens of security personnel, and thousands arrested.

Several people have already been executed over their involvement in the protests and death sentences have been handed down to others.

Last month, Iran announced that the country's Supreme Leader, Ayatollah Ali Khamenei, pardoned more than 22,000 people arrested in the anti-government protests that swept the Islamic Republic.