Somalia is a country located in the Horn of Africa which officially consists of the intra-46th meridian east territory, the seven federal member states, namely Galmudug, Hirshabelle, Jubaland, South West, Puntland, and the municipality of Benadir. It is bordered by Ethiopia to the west, the Gulf of Aden to the north, the Somali Sea and Guardafui Channel to the east, and Kenya to the southwest. With a land area of 637,657 square kilometers, Somalia's terrain consists mainly of plateaus, plains and highlands. Its coastline is more than 3,333 kilometers in length, the longest of mainland Africa. It has been described as being roughly shaped "like a tilted number seven".Ganzglass, Martin R. "The Somali Refugees-Africa's Open Wound Refuses to Heal." Hum. Rts. 8 (1979): 28.

In the far north, the rugged east–west ranges of the Ogo Mountains lie at varying distances from the Gulf of Aden coast. Hot conditions prevail year-round, along with periodic monsoon winds and irregular rainfall. Geology suggests the presence of valuable mineral deposits.

Somalia is separated from Seychelles by the Somali Sea and is separated from Socotra by the Guardafui Channel.

Climate

Due to Somalia's proximity to the equator, there is not much seasonal variation in its climate. However, there are some very unpredictable rainfalls that occur sometimes. Hot conditions prevail year-round along with monsoon (periodic seasonal reversing wind accompanied by corresponding changes in precipitation) winds and irregular rainfall. Mean daily maximum temperatures range from , except at higher elevations and along the eastern seaboard, where the effects of a cold offshore current can be felt. In Mogadishu, for instance, average afternoon highs range from in April. Some of the highest mean annual temperatures in the world have been recorded in the country; Berbera on the northwestern coast has an afternoon high that averages more than from June through September. Nationally, mean daily minimums usually vary from about .Hadden, Robert Lee. 2007. "The Geology of Somalia: A Selected Bibliography of Somalian Geology, Geography and Earth Science." Engineer Research and Development Laboratories, Topographic Engineering Center The greatest range in climate occurs in northern Somalia, where temperatures sometimes surpass in July on the littoral plains and drop below the freezing point during December in the highlands. In this region, relative humidity ranges from about 40 percent in the mid-afternoon to 85 percent at night, changing somewhat according to the season.

Unlike the climates of most other countries at this latitude, conditions in Somalia range from arid desert in the northeastern and central regions to semiarid steppe in the south and northwest. In the south, in the east Africa coastal forest, there are regions in which there is a tropical savanna climate. In the Cal Madow region of Somalia, there is cold steppe climate. In the northeast, annual rainfall is less than ; in the central plateaus, it is about . The northwestern and southwestern parts of the nation, however, receive considerably more rain, with an average of falling per year. Although the coastal regions are hot and humid throughout the year, the hinterland is typically dry and hot. The Cal Madow and the Lag Badana national park are humid areas.

Most of the country receives less than of rain annually, and a large area encompassing the northeast and much of northern Somalia receives as little as . Certain higher areas in the north, however, record more than a year, as do some coastal sites. The southwest receives . Generally, rainfall takes the form of showers or localized torrential rains and is extremely variable. Mean daily maximum temperatures throughout the country range from , except at higher elevations and along the Somali Sea coast. Mean daily minimum temperatures vary from to more than . Northern Somalia experiences the greatest temperature extremes, with readings ranging from below freezing in the highlands in December to more than in July in the coastal plain skirting the Gulf of Aden. The north's relative humidity ranges from about 40 percent in midafternoon to 85 percent at night, varying somewhat with the season. During the colder months, December to February, visibility at higher elevations is often restricted by fog. Temperatures in the south are less extreme, ranging from about . The hottest months are February through April. Coastal readings are usually five to ten degrees cooler than those inland. The coastal zone's relative humidity usually remains about 70 percent even during the dry seasons.

There are four main seasons around which pastoral and agricultural life revolve, and these are dictated by shifts in the wind patterns. From December to March is the Jilal, the harshest dry season of the year. The main rainy season, referred to as the Gu, lasts from April to June. This period is characterized by the southwest monsoons, which rejuvenate the pasture land, especially the central plateau, and briefly transform the desert into lush vegetation. From July to September is the second dry season, the Xagaa (pronounced "Hagaa"). The Dayr, which is the shortest rainy season, lasts from October to December. The tangambili periods that intervene between the two monsoons (October–November and March–May) are hot and humid.

Terrain, vegetation and drainage

Physio-graphically, Somalia is a land of limited contrast. In the north, a maritime semidesert plain parallels the Gulf of Aden coast, varying in width from roughly twelve kilometers in the west to as little as two kilometers in the east. Scrub-covered, this plain, known as the Guban (scrub land), is crossed by broad, shallow watercourses that are beds of dry sand except in the rainy seasons. When the rains arrive, the vegetation, which is a combination of low bushes and grass clumps, is quickly renewed, and for a time the guban provides some grazing for nomad livestock. This coastal strip is part of the Ethiopian xeric grasslands and shrublands ecoregion.

Inland from the gulf coast, the plain rises to the precipitous northward-facing cliffs of the dissected highlands. These form the rugged Karkaar mountain ranges that extend from the northwestern border with Ethiopia eastward to the tip of the Horn of Africa, where they end in sheer cliffs at Caseyr. The general elevation along the crest of these mountains averages about 1,800 meters above sea level south of the port town of Berbera, and eastward from that area it continues at 1,800 to 2,100 meters almost to Caseyr. The country's highest point, Shimber Berris, which rises to 2,460 meters, is located near the town of Erigavo.

Southward the mountains descend, often in scarped ledges, to an elevated plateau devoid of perennial rivers. This region of broken mountain terrain, shallow plateau valleys, and usually dry watercourses is known to the Somalis as the Ogo.

In the Ogo's especially arid eastern part, the plateau—broken by several isolated mountain ranges—gradually slopes toward the Somali Sea and in central Somalia constitutes the Mudug Plain. A major feature of this eastern section is the long and broad Nugaal Valley, with its extensive network of intermittent seasonal watercourses. The Nugaal river enters the Somali Sea at Eyl. The eastern area's population consists mainly of pastoral nomads eking a living in a zone of low and erratic rainfall.

The western part of the Ogo plateau region is crossed by numerous shallow valleys and dry watercourses. Annual rainfall is greater than in the east, and there are flat areas of arable land that provide a home for dryland cultivators. Most important, the western area has permanent wells to which the predominantly nomadic population returns during the dry seasons. The western plateau slopes gently southward and merges imperceptibly into an area known as the Haud, a broad, undulating terrain that constitutes some of the best grazing lands for Somali nomads, despite the lack of appreciable rainfall more than half the year. Enhancing the value of the Haud are the natural depressions that during periods of rain become temporary lakes and ponds.

The Haud zone continues for more than sixty kilometers into Ethiopia, and the vast Somali Plateau, which lies between the northern Somali mountains and the highlands of southeast Ethiopia, extends south and eastward through Ethiopia into central and southwest Somalia. The portion of the Haud lying within Ethiopia was the subject of an agreement made during the colonial era. In 1948, under pressure from their World War II allies and to the dismay of the Somalis,Federal Research Division, Somalia: A Country Study, (Kessinger Publishing, LLC: 2004), p.38 the British "returned" the Haud (an important Somali grazing area that was presumably 'protected' by British treaties with the Somalis in 1884 and 1886) and the Ogaden to Ethiopia, based on an 1897 treaty in which the British ceded Somali territory to the Ethiopian Emperor Menelik in exchange for his help against plundering by Somali clans.David D. Laitin, Politics, Language, and Thought: The Somali Experience, (University Of Chicago Press: 1977), p.73 Britain included the proviso that the Somali nomads would retain their autonomy, but Ethiopia immediately claimed sovereignty over them.Zolberg, Aristide R., et al., Escape from Violence: Conflict and the Refugee Crisis in the Developing World, (Oxford University Press: 1992), p.106 This prompted an unsuccessful bid by Britain in 1956 to buy back the Somali lands it had turned over. The stretch of land has since been a considerable source of regional strife.

Southwestern Somalia is dominated by the country's only two permanent rivers, the Jubba and the Shabeelle. With their sources in the Ethiopian highlands, these rivers flow in a generally southerly direction, cutting wide valleys in the Somali Plateau as it descends toward the sea; the plateau's elevation falls off rapidly in this area. The adjacent coastal zone, which includes the lower reaches of the rivers and extends from the Mudug Plain to the Kenyan border, averages 180 meters above sea level.

The Jubba River enters the Somali Sea at Kismaayo. Although the Shabeelle River at one time apparently also reached the sea near Merca, its course is thought to have changed in prehistoric times. The Shabeelle now turns southwestward near Balcad (about thirty kilometers north of Mogadishu) and parallels the coast for more than eighty-five kilometers. The river is perennial only to a point southwest of Mogadishu; thereafter it consists of swampy areas and dry reaches and is finally lost in the sand east of Jilib, not far from the Jubba River. During the flood seasons, the Shabeelle River may fill its bed to a point near Jilib and occasionally may even break through to the Jubba River farther south. Favorable rainfall and soil conditions make the entire riverine region a fertile agricultural area and the center of the country's largest sedentary population.

In most of northern, northeastern, and north-central Somalia, where rainfall is low, the vegetation consists of scattered low trees, including various acacias, and widely scattered patches of grass. This vegetation gives way to a combination of low bushes and grass clumps in the highly arid areas of the northeast and along the Gulf of Aden.

As elevations and rainfall increase in the maritime ranges of the north, the vegetation becomes denser. Aloes are common, and on the higher plateau areas of the Ogo are woodlands. At a few places above 1,500 meters, the remnants of juniper forests (protected by the state) and areas of Euphorbia candelabrum (a chandelier-type spiny plant) occur. In the more arid highlands of the northeast, Boswellia and Commiphora trees are sources, respectively, of the frankincense and myrrh for which Somalia has been known since ancient times.