the turks and portuguese fought over east africa for the next 200 years, but the turks eventually won about 270 years ago. northern somalia stayed under turkish protection after ahmad died, and the east coast including mogadishu ended up under the protection of the king of oman. when egypt declared independence from the turks a hundred years later, northern somalia became part of egypt. egypt came under british protection shortly after that, and northern somalia basically became a british protectorate as well. this became official about 130 years ago, and northern somalia officially became british somaliland.