Maritime history of Somalia
Maritime history of Somalia refers to the seafaring tradition of the Somali people. It includes various stages of Somali navigational technology, shipbuilding and design, as well as the history of the Somali port cities. It also covers the historical sea routes taken by Somali sailors which sustained the commercial enterprises of the historical Somali kingdoms and empires, in addition to the contemporary maritime culture of Somalia. In antiquity, the ancestors of the Somali people were an important link in the Horn of Africa connecting the region's commerce with the rest of the ancient world. Somali  sailors and merchants were the main suppliers of frankincense, myrrh and spices, items which were considered valuable luxuries by the Ancient Egyptians, Phoenicians, Mycenaeans and Babylonians. During the classical era, several ancient city-states such as Opone, Mosylon and Malao that competed with the Sabaeans, Parthians and Axumites for the wealthy Indo-Greco-Roman trade also flourished in Somalia. In the Middle Ages, several powerful Somali empires dominated the regional trade including the Ajuran Sultanate, the latter of which maintained profitable maritime contacts with Arabia, India, Venetia, Persia, Egypt, Portugal and as far away as China. This tradition of seaborne  trade was maintained in the early modern period, with Berbera being the pre-eminent Somali port during the 18th–19th centuries. Antiquity. In ancient times, the Kingdom of Punt, which is believed by several Egyptologists to have been situated in the area of modern-day Somalia, had a steady trade link with the Ancient Egyptians and exported precious natural resources such as myrrh, frankincense and gum. This trade network continued all the way into the classical era. The city states of Mossylon, Malao, Mundus, Avalites and Tabae in Somalia engaged in a lucrative trade network connecting Somali merchants with Phoenicia, Ptolemic  Egypt, Greece, Parthian Persia, Saba, Nabataea and the Roman Empire. Somali sailors used the ancient Somali maritime vessel known as the "beden" to transport their cargo. After the Roman conquest of the Nabataean Empire and the Roman naval presence at Aden to curb piracy, Arab and Somali merchants barred Indian merchants from trading in the free port cities of the Arabian peninsula because of the nearby Roman presence. However, they continued to trade in the port cities of the Somali peninsula, which was free from any Roman threat or spies. The reason for barring Indian ships from entering the wealthy  Arabian port cities was to protect and hide the exploitative trade practices of the Somali and Arab merchants in the extremely lucrative ancient Red Sea-Mediterranean Sea commerce. The Indian merchants for centuries brought large quantities of cinnamon from Ceylon and the Far East to Somalia and Arabia. This is said to have been the best-kept secret of the Arab and Somali merchants in their trade with the Roman and Greek world. The Romans and Greeks believed the source of cinnamon to have been the Somali peninsula but in reality, the highly valued product was brought to Somalia by  way of Indian ships. Through Somali and Arab traders, Indian/Chinese cinnamon was also exported for far higher prices to North Africa, the Near East and Europe, which made the cinnamon trade a very profitable revenue generator, especially for the Somali merchants through whose hands large quantities were shipped across ancient sea and land routes. Somali sailors were aware of the region's monsoons, and used them to link themselves with the port cities of the Indian Ocean and the Red Sea. They also developed an understandable way of defining the islands of the Indian Ocean in their navigational reach . They would name archipelagos or groups of islands after the most important island there, from the Somali point of view. Middle Ages. During the Age of the Ajurans, the sultanates and republics of Merca, Mogadishu, Barawa, Hobyo and their respective ports flourished and had a lucrative foreign commerce with ships sailing to Arabia, India, Venetia, Persia, Egypt, Portugal and as far away as China. In the 16th century, Duarte Barbosa noted that many ships from the Kingdom of Cambaya in India sailed to Mogadishu with fabric and spices, for which they in return received gold, wax and ivory. Mogadishu, the  center of a thriving weaving industry known as "toob benadir" (specialized for the markets in Egypt and Syria), together with Merca and Barawa also served as transit stops for Swahili merchants from Mombasa and Malindi and for the gold trade from Kilwa. Trade with the Hormuz went both ways, and Jewish merchants brought their Indian textile and fruit to the Somali coast in exchange for grain and wood. Trading relations were established with Malacca in the 15th century, with cloth, ambergris and porcelain being the main commodities exchanged. Giraffes, zebras, and incense were exported to the Ming Empire of China , which established Somali merchants as leaders in the commerce between Asia and Africa, and in the process influenced the Chinese language with the Somali language and vice versa. Hindu merchants from Surat and Southeast African merchants from Pate, seeking to bypass both the Portuguese blockade and Omani meddling, used the Somali ports of Merca and Barawa (which were out of the two powers' jurisdiction) to conduct their trade in safety and without interference. During the same period, Somali merchants sailed to Cairo, Damascus, Mocha, Mombasa, Aden, Madagascar, Hyderabad and the islands of the Indian Ocean and the Red Sea, establishing  Somali communities along the way. These travels produced several important individuals such as the Muslim scholars Uthman bin Ali Zayla'i in Egypt, Abd al-Aziz of Mogadishu in the Maldives, as well as the explorer Sa'id of Mogadishu, the latter of whom traveled across the Muslim world and visited China and India in the 14th century. Early modern era to present. In the early modern period, successor states of the Adal and Ajuran empires began to flourish in Somalia, continuing the tradition of seaborne trade established by previous Somali empires. The rise of the 19th century Gobroon Dynasty in particular  saw a rebirth in Somali maritime enterprise. During this period, the Somali agricultural output to Arabian markets was so great that the coast of Somalia came to be known as the "Grain Coast" of Yemen and Oman. Somali merchants also operated trade factories on the Eritrean coast. Berbera was the most important port in the Somali Peninsula between the 18th–19th centuries. For centuries, Berbera had extensive trade relations with several historic ports in the Arabian Peninsula. Additionally, the Somali and Ethiopian interiors were very dependent on Berbera for trade, where most of the goods for export arrived from. During the  1833 trading season, the port town swelled to over 70,000 people, and upwards of 6,000 camels laden with goods arrived from the interior within a single day. Berbera was the main marketplace in the entire Somali seaboard for various goods procured from the interior, such as livestock, coffee, frankincense, myrrh, acacia gum, saffron, feathers, wax, ghee, hide (skin), gold and ivory. According to a trade journal published in 1856, Berbera was described as “the freest port in the world, and the most important trading place on the whole Arabian Gulf (referring to the Gulf of Aden).”: Historically, the port of  Berbera was controlled indigenously between the mercantile Reer Ahmed Nur and Reer Yunis Nuh sub-clans of the Habar Awal. The major Isaaq sub-clans that historically operated from Berbera and other ports and harbors in their domain were known to be adept at trade and seafaring: Some Isaaq clans are very much given to both seafaring and trade. The setting up of trading posts and the erection of any permanent dwellings used to be strongly resented by the nomads of the deep interior. During the brief period of imperial hegemony over the Somali Peninsula, Somali sailors and traders frequently  joined British and other European ships to the Far East, Europe and the Americas. Somalia, in the pre-civil war period, possessed the largest merchant fleet in the Muslim world. It consisted of 12 oil tankers (average size 1300 tons), 15 bulk ore carriers (average size 15000 tons), and 207 other crafts with an average tonnage of 5000 to 10000. Naval warfare. In ancient times, naval engagements between buccaneers and merchant ships were very common in the Gulf of Aden. In the late medieval period, Somali navies regularly engaged their Portuguese counterparts at sea; the Somali coast's commercial reputation  naturally attracted the latter. These tensions significantly worsened during the 16th century. Over the next several decades, Somali-Portuguese tensions would remain high. The increased contact between Somali sailors and Ottoman corsairs worried the Portuguese, prompting the latter to send a punitive expedition against Mogadishu under João de Sepúlveda. The expedition was unsuccessful. Ottoman-Somali cooperation against the Portuguese in the Indian Ocean reached an apogee in the 1580s when Ajuran clients of the Somali coastal cities began to sympathize with the Arabs and Swahilis under Portuguese rule and sent an envoy to the Turkish corsair Mir Ali Bey for  a joint expedition against the Portuguese. Bey agreed and was joined by a Somali fleet, which began attacking Portuguese colonies in Southeast Africa. The Somali-Ottoman offensive managed to drive out the Portuguese from several important cities such as Pate, Mombasa and Kilwa. However, the Portuguese governor sent envoys to India requesting a large Portuguese fleet. This request was answered, and it reversed the previous offensive of the Muslims into one of defense. The Portuguese armada managed to re-take most of the lost cities and punish their leaders. However, they refrained from attacking Mogadishu. During the post-independence period , the Somali Navy mostly did maritime patrols to prevent ships from illegally infringing on the nation's maritime borders. The Somali Navy and Somali Air Force also regularly collaborated as a deterrent against the Imperial Navy of Ethiopia. In addition, the Somali Navy carried out Search and Rescue (SAR) missions. The National Navy participated in many navy exercises with the United States Navy, the Royal British Navy and the Royal Canadian Navy in the Red Sea and the Indian Ocean.