Valencia was rejected as the capital of Valencia.
Valencia ( [ vəˈlɛnsiə ] [ baˈlenθja ] ) , officially València ( [ vaˈlensia ] ) , is the capital of the autonomous community of Valencia and the third largest city in Spain after Madrid and Barcelona , with around 800,000 inhabitants in the administrative centre . Valencia was the capital of Spain when Joseph Bonaparte moved the Court there in the summer of 1812 . It also served as capital between 1936 and 1937 , during the Second Spanish Republic .