A horse walked into a club — no joke.

And city officials in Miami Beach were certainly not laughing on Friday when they shut down the nightclub for creating what they said was a threat to public health and opened a criminal investigation into whether it had committed animal cruelty.

“This morning we heard about and saw an extremely troubling video of what can only be described as insane stupidity,” Mayor Dan Gelber said at a news conference on Friday. “It was dangerous to this animal, it was dangerous to the public, it was inhumane. It wasn’t silly or sophomoric. It was outrageous.”

The order issued to the nightclub, Mokai Lounge, says the horse was paraded around the venue sometime Wednesday night or Thursday morning.