(CNN) Two 18-year-olds were publicly flogged Thursday in the conservative Indonesian state of Aceh for displaying affection.

The college student and her boyfriend each received 17 lashes for publicly cuddling, which is a violation of the state's strict interpretation of Sharia law, according to a government spokesman.

The punishments were administered in front of a mosque in the provincial capital Banda Aceh.

Video of the event shows a masked individual striking the two teenagers, one after the other, across the upper back in front of a crowd, members of which were taking cellphone videos.

The woman's boyfriend, also a teenager, is whipped as punishment for the public affection.

A 35-year-old man was also whipped 20 times, as part of his punishment for being "intimate" with a woman in a grocery store which she owned.

Read More