Five Iranian  girls were taken into custody and forced to apologize after they were captured in video in crop tops and baggy pants with their hair uncovered dancing in public.

The five girls were re-creating a viral TikTok dance to the song "Calm Down" by Rema and Selena Gomez.

The video was posted by their dance instructor on Instagram, and it quickly went viral as a symbol of resistance against the country's hard-line Islamist regime and its crackdown on protesters.

Women in Iran are not allowed to dance in public and are required to wear headscarves and loose-fitting clothes.

Over the next few days, authorities reportedly went looking for the teenagers, who are in Ekbatan, a town west of Tehran, and their dance instructor's video was removed. The girls were detained for two days and forced to record a confession video expressing remorse for their actions.

In response, women in Iran and abroad began posting videos of themselves and others doing the same dance in public with their hair uncovered as a show of support for the girls.

In response to the incident, Rema used Twitter to express his inspiration from the girls and other Iranian women who are fighting for a better future.

He tweeted, "To all the beautiful women who are fighting for a better world, I'm inspired by you, I sing for you, and I dream with you."