Why it's the capital
Under British rule the Gold Coast was governed from Cape Coast, but in 1877 the capital moved to Accra, partly because its climate was drier. Accra kept that role when the country became independent as Ghana in 1957.
Capital of GhanaOn Ghana's southern coast, Accra faces the Gulf of Guinea, which is part of the Atlantic Ocean. The deep-water port of Tema is a short way further east along the same shore.
Under British rule the Gold Coast was governed from Cape Coast, but in 1877 the capital moved to Accra, partly because its climate was drier. Accra kept that role when the country became independent as Ghana in 1957.
Follow the 0° longitude line (the Prime Meridian) south to the coast of West Africa. It reaches Ghana's shore at Tema, and Accra is just to the west of it.
Sources: Wikipedia: Accra, Wikipedia: Kwame Nkrumah Memorial Park, Wikipedia: Tema