Urban farming has occurred in various forms throughout history. Some of the earliest cities like Catal-Hoyuk and Jericho grew crops outside dense settlements. Permanent crop-based settlements allowed for urbanization. Exceptions included oasis cities which could farm within walls due to protective deserts. Floating cities like Tenochtitlan farmed lakes. Modern public parks in the 18th century separated recreation from farming. The Garden City movement brought urban farming into cities in the late 19th century. State socialism increased urban farming in 20th century Eastern Europe. Recent high-tech methods include hydroponics and closed farms under artificial lights.