Dublin is the capital and largest city of Ireland. On a bay at the mouth of the River Liffey, it is in the province of Leinster, bordered on the south by the Dublin Mountains, a part of the Wicklow Mountains range. At the 2016 census it had a population of 1,173,179, while the preliminary results of the 2022 census recorded that County Dublin as a whole had a population of 1,450,701, and that the population of the Greater Dublin Area was over 2 million, or roughly 40% of the Republic of Ireland's total population.
A settlement was established in the area by the Gaels during or before the 7th century, followed by the Vikings. As the Kingdom of Dublin grew, it became Ireland's principal settlement by the 12th century Anglo-Norman invasion of Ireland. The city expanded rapidly from the 17th century and was briefly the second largest in the British Empire and sixth largest in Western Europe after the Acts of Union in 1800. Following independence in 1922, Dublin became the capital of the Irish Free State, renamed Ireland in 1937.
Dublin is a centre for education, arts and culture, administration and industry. As of 2018, the city was listed by the Globalization and World Cities Research Network (GaWC) as a global city, with a ranking of "Alpha minus", which places it as one of the top thirty cities in the world.