Nigeria became a formally independent federation on 1 October 1960. The British set up administrative and legal structures while practising indirect rule through traditional chiefdoms. The modern state originated with British colonialization in the 19th century, taking its present territorial shape with the merging of the Southern Nigeria Protectorate and Northern Nigeria Protectorate in 1914. Nigeria has been home to several indigenous pre-colonial states and kingdoms since the second millennium BC, with the Nok civilization in the 15th century BC marking the first internal unification. The largest city in Nigeria is Lagos, one of the largest metropolitan areas in the world and the largest in Africa. Nigeria is a federal republic comprising 36 states and the Federal Capital Territory, where the capital, Abuja, is located. Nigeria borders Niger in the north, Chad in the northeast, Cameroon in the east, and Benin in the west. It covers an area of 923,769 square kilometres (356,669 sq mi), and with a population of over 230 million, it is the most populous country in Africa, and the world's sixth-most populous country. It is situated between the Sahel to the north and the Gulf of Guinea to the south in the Atlantic Ocean. Nigeria ( / n aɪ ˈ dʒ ɪər i ə/ ⓘ ny- JEER-ee-ə), officially the Federal Republic of Nigeria, is a country in West Africa.