Berbera (, ) is a city in the northwestern Berbera District of Somalia. It is situated in the Woqooyi Galbeed province in the autonomous Somaliland region of Somalia. In antiquity, Berbera was part of a chain of commercial port cities along the Somali seaboard. It later served as the capital of the British Somaliland protectorate from 1884 to 1941, when it was replaced by Hargeisa. In 1960, the British Somaliland protectorate gained independence as the State of Somaliland and united as scheduled five days later with the Trust Territory of Somalia (the former Italian Somaliland) to form the Somali Republic. Located strategically on the oil route, the city has a deep seaport, which serves as the region’s main commercial harbor.