Somalia has the longest coastline on the mainland of Africa, with a seaboard that stretches . Its terrain consists mainly of plateaus, plains and highlands. The nation has a total area of  of which constitutes land, with  of water. Somalia's land boundaries extend to about ;  of that is shared with Djibouti,  with Kenya, and  with Ethiopia. Its maritime claims include territorial waters of .