Some foreigners who were caught without face masks in Indonesia were made to undergo some push-ups as a form of punishment for disobeying the stated rule.

The foreigners were caught on the Indonesian resort island of Bali without face masks and were subjected to the unusual punishment.

Video footage circulating on social media this week shows tourists in T-shirts and shorts being made to do the exercise in sweltering tropical heat as masked security officials stood over them.

Bali authorities made wearing a face mask in public mandatory last year as Indonesia battled a raging Covid-19 outbreak.

In recent days, however, scores of foreigners have been caught without face coverings, said security official Gusti Agung Ketut Suryanegara.

More than 70 people paid a fine of 100,000 rupiah ($7), but about 30 others said they did not have the cash.

Instead, they were ordered to do push-ups.

Those not carrying a mask had to do up to 50, while those who were wearing one improperly were punished with 15.

“At first, they would claim that they didn’t know the regulation,” Suryanegara told AFP. “Then they said they forgot, or that the mask was wet or damaged.”

Some Indonesians on the island, which is a pocket of Hinduism in the world’s most populous Muslim-majority country, have also been hit with the unusual punishment

Bali’s authorities have also warned that foreigners who break virus regulations could be thrown out of the country, although so far there have no reports of anyone being deported for failing to wear a mask.

The island, which has been hammered by the epidemic, remains officially closed to overseas tourists but is home to many long-term residents from abroad.

Foreigners living elsewhere in Indonesia can still visit.