Guimarães is one of Portugal's oldest towns and was the birthplace of the nation. It was chosen as the first capital of Portugal in 1128 and its well-preserved medieval center contains historic buildings from the 15th-19th centuries. The historic center is a maze of alleys surrounding the main squares of Toural Square and Largo da Oliveira, and contains important sites like the Castle, Ducal Palace, churches and museums that showcase the town's evolution. Guimarães is nicknamed "the city of a thousand windows" for the glowing windows visible after sunset.