Sign up for our special edition newsletter to get a daily update on the coronavirus pandemic.

An Australian man has been arrested after repeatedly sneaking out of a Perth hotel room to visit his girlfriend while under mandated quarantine, a report said.

Jonathan David, 35, pleaded guilty to two counts of failing to comply with a direction in a Perth court on Wednesday after a judge called him “breathtakingly arrogant,” according to Perth Now.

David was told to quarantine at a Travelodge Hotel for 14 days. Instead, he snuck out of the building and hopped on a train on April 4 and 5, Perth’s WAToday reported.

He allegedly left the building on multiple occasions to visit his girlfriend and buy food.

Cops said that David even wedged open a fire exit door with a napkin so he could leave and return without staff seeing him.

A prosecutor described the act as “gross stupidity” and a magistrate said David had been “more than foolish” and was “selfish in the extreme.”

“You chose to roll the dice with other people’s lives and that was breathtakingly arrogant,” the magistrate said.

David was sentenced to one month in jail and fined about $1,300.