During the early 19th century, the Peninsular War, the loss of viceroyalties in the Americas, and continuing coups limited the city's architectural development (Royal Theatre, the National Library of Spain, the Palace of the Senate, and the Congress). The Segovia Viaduct linked the Royal Alcázar to the southern part of town.