As of 1 January 2020, Spain had a total population of 47,431,256, which represents a 0.9% increase since 2019. The modern Kingdom of Spain arose from the accretion of several independent Iberian realms, including the Kingdoms of León, Castile, Navarre, the Crown of Aragon and Granada, all of which, together with the modern state of Portugal, were successor states to the late antique Christian Visigothic Kingdom after the Reconquista. Spain's population peaked in 2019, surpassing for the first time in history 47 million inhabitants. As of January 2020, there were already 47,431,256 people living in Spain. Its population density, at , is lower than other Western European countries yet, with the exception of microstates, it has the highest real density population in Europe, based on density of inhabited areas. With the exception of the capital Madrid, the most densely populated areas lie around the coast. The population of Spain doubled during the twentieth century, but the pattern of growth was extremely uneven due to large-scale internal migration from the rural interior to the industrial cities. Eleven of Spain's fifty provinces saw an absolute decline in population over the century. The last quarter of the century saw a dramatic fall in birth rates. Spain's fertility rate of 1.47 (the number of children the average woman will have during her lifetime) has climbed every year since the late 1990s. The birth rate has climbed in 10 years from 9.10 births per 1000 people per year in 1996 to 10.9 in 2006, before declining again to 7.13 by 2021. In 2021 the Total Fertility Rate of Spain (average number of children per woman) was 1.19, and 3.7% was the percent of births to women that were their 4th+ child. Spain accepted 478,990 new immigrant residents in the first six months of 2022 alone. During these first six months, 220,443 people also emigrated from Spain, leaving a record-breaking net migration figure of 258,547. The data shows that more women than men chose to move to Spain during 2022, this is due to higher rates of emigration from Latin America. History Notable events in modern Spanish demography: Late 19th century and early 20th century: Relative economic stagnation and mass emigration to American countries. 1918. Flu pandemic, over 200,000 dead in Spain. 1936. Start of the Spanish Civil War. 1939. End of the Civil War. Establishment of a dictatorship, Start of rationing policies. Deepening of economic