The city of Valencia has a population of 807,396 inhabitants and is the centre of an extensive metropolitan area which brings the number to a million and a half people. This total represents 18% of the population of the Valencian region and makes Valencia, in terms of population, the third largest city in Spain after Madrid and Barcelona. It is also the third largest city in terms of registered immigrants. Foreign nationals – just as Spaniards – have to register in the municipal census. The city population increased throughout the 20th century and was stable during the 1990s. At the beginning of the 21st century, a strong migratory inflow has led to a new dynamic increase in the population.