The medieval period saw an upswing of castles as feudal lords and kings sought to secure their territories from enemy invasions. These structures started out simple wooden structures to more elaborate stone fortresses that incorporated defensive features for instance moats, drawbridges, and ramparts. castel lipuglia