Germany's landscape is dotted with an estimated 25,000 castles primarily due to its long history of political fragmentation. During the Middle Ages and the Holy Roman Empire, the region was split into hundreds of small, competing territories ruled by local lords, dukes, and robber knights. These nobles built castles to defend their land, project power, and—most importantly—to collect tolls and taxes from merchants traveling along vital trade routes like the Rhine River. Because there was no centralized government for centuries, every minor ruler needed their own fortified stronghold. Castles like Neuschwanstein, however, were built much later (in the 19th century) not for defense, but as romantic "fairytale" retreats for shy royalty like King Ludwig II. This legacy of defensive and prestige building has left Germany with a higher density of castles than almost any other country, ranging from rugged ruins to meticulously restored luxury palaces.