Some buildings have secret areas built into their original plans, such as secret passages in medieval castles, designed to allow inhabitants to escape from enemy sieges. Other castles' secret passages led to an underground water source, providing water during prolonged sieges.