Hafun (Xaafuun) is a small low-lying peninsula in the Bari region of northern Somalia. It is sometimes known as Ras Hafun or Raas Xaafuun, and "Hafun" also refers to the small community on the peninsula. The promontory juts out into the Indian Ocean, where it is known as Cape Hafun and is the easternmost point on the African continent. Its coordinates are .
Ras Hafun is believed to be the location of the ancient trade center of "Opone". Opone was mentioned by an anonymous merchant in the 1st century CE in his Periplus of the Erythraean Sea. Ancient Egyptian, Roman and Persian Gulf pottery has been recovered from the site by an archaeological team from the University of Michigan. Opone is in the thirteenth entry of the Periplus of the Erythraean Sea, which in part states:
In ancient times, Opone operated as a port of call for merchants from Phoenicia, Egypt, Greece, Persia, Yemen, Nabataea, Azania, the Roman Empire and elsewhere, as it possessed a strategic location along the coastal route from Azania to the Red Sea. Merchants from as far afield as Indonesia and Malaysia passed through Opone, trading spices, silks and other goods, before departing south for Azania or north to Yemen or Egypt on the trade routes that spanned the length of the Indian Ocean's rim. As early as 50 AD it was well known as a center for the cinnamon trade, along with the trading of cloves and other spices, ivory, exotic animal skins and incense.