Cardiff is the capital and largest city in Wales and the eleventh-largest city in the United Kingdom. The city is the country's chief commercial centre, the base for most national cultural and sporting institutions, the Welsh national media, and the seat of the National Assembly for Wales. The unitary authority area's mid-2011 population was estimated to be 346,100, while the population of the Larger Urban Zone was estimated at 861,400 in 2009. The Cardiff metropolitan area makes up over a third of the total population of Wales, with a mid-2011 population estimate of about 1,100,000 people. Cardiff is a significant tourist centre and the most popular visitor destination in Wales with 18.3 million visitors in 2010. In 2011, Cardiff was ranked sixth in the world in National Geographic's alternative tourist destinations. 

The city of Cardiff is the county town of the historic county of Glamorgan (and later South Glamorgan). Cardiff is part of the Eurocities network of the largest European cities. The Cardiff Urban Area covers a slightly larger area outside the county boundary, and includes the towns of Dinas Powys and Penarth. A small town until the early 19th century, its prominence as a major port for the transport of coal following the arrival of industry in the region contributed to its rise as a major city.
Did the industrial revolution have anything to do with this?
its prominence as a major port for the transport of coal following the arrival of industry in the region