Although medieval architecture went through the same phases as medieval England, the medieval secular architecture that survived to this day mainly served defense purposes during the medieval era. Castles and walls were the most notable non-religious examples of medieval architecture throughout Europe.