A type of fortified structure built during the Middle Ages predominantly by the nobility or royalty and by military orders. Castles were usually built in strategic locations, such as on hills or near rivers, and were designed to withstand attack. They typically had thick walls, towers, and a moat