Relations between the territories of present-day Somalia and the United Arab Emirates stretch back to antiquity.[127] During the Middle Ages and early modern period, the various Somali Sultanates also maintained close relations with other kingdoms across the Red Sea.