The city extends about 40 km (25 mi) along the northern coast of Egypt, and is the largest city on the Mediterranean, the second-largest in Egypt (after Cairo), the fourth-largest city in the Arab world, the ninth-largest city in Africa, and the ninth-largest urban area in Africa.