Ghana, officially the Republic of Ghana, is a country in West Africa. It spans along the Gulf of Guinea and the Atlantic Ocean, sharing borders with the Ivory Coast in the west, Burkina Faso in the north, Togo in the east, the Gulf of Guinea and the Atlantic Ocean in the south. Ghana covers an area of 238,535 km², with a population of 31 million. It is the second-most populous country in West Africa, after Nigeria; and Accra is its capital and largest city.
The first permanent state in the territory of present-day Ghana dates back to the 11th century, the Bono State. Numerous kingdoms and empires emerged over the centuries, of which the most powerful were the Kingdom of Dagbon, and the Ashanti Empire. Beginning in the 15th century, the Portuguese Empire, followed by numerous other European powers, contested the area for trading rights, until the British ultimately established control of the coast by the late 19th century. Following over a century of native resistance, what are now Ghana's borders follow the lines of what were four separate British colonial territories: Gold Coast, Ashanti, the Northern Territories and British Togoland.