This was a European-style medieval fortified city that functioned as the seat of the Spanish government from 1571 to 1898. The massive walls stretch for a few kilometers, enclosing a 64-hectare (158-acre) area once occupied by palaces, churches, monasteries, schools and wealthy residences. Having sustained damages in the past, the walled city has persevered and is visited by many. Most of the walls, gates and bulwarks have been restored, affording visitors a glimpse into the past.