A Wisconsin court has banned a local man from all the libraries on the planet after he was caught openly masturbating inside the Racine Public Library.

The 20-year-old, identified as Tyree S. Carter, was reportedly "standing in the open, not trying to conceal the act."

A police officer who was called to the scene found Carter still at the library reading a book, and asked him if he was aware of a complaint against him.

According to the criminal complaint, Carter initially denied any wrongdoing, but eventually apologized and claimed it was his first time masturbating in public.

Carter, who is believed to be homeless, was booked into the Racine County Jail on charges of lewd and lascivious behavior.

His bond was set at $1,000 on one condition: That he "stay out of all the libraries on the face of the earth."

[photo via Shutterstock]