The history of can be traced back to the 17th century, in the early Edo period, when establishments appearing to be inns or teahouses with particular procedures for a discreet entry or even with secret tunnels for a discreet exit were built in Edo and in Kyoto. Modern love hotels developed from tea rooms () used mostly by prostitutes and their clients but also by lovers. After World War II, the term was adopted, originally for simple lodgings run by families with a few rooms to spare. These establishments appeared first around Ueno, Tokyo in part due to demand from Occupation forces, and boomed after 1958 when legal prostitution was abolished and the trade moved underground.