In the West, gay men have been using bathhouses for sex since at least the late 19th and early 20th centuries, a time when homosexual acts were illegal in most Western countries and men who were caught engaging in homosexual acts were often arrested and publicly humiliated.