The Ghana (Wagadu) Empire (before c. 830 until c. 1235) was located in what is now southeastern Mauritania and western Mali. Complex societies had existed in the region since about 1500 BC, and around Ghana's core region since about 300 AD. When Ghana's ruling dynasty began is uncertain; it is first mentioned in documentary sources around 830 AD by Muḥammad ibn Mūsā al-Khwārizmī. The domestication of the camel, which preceded Muslims and Islam by several centuries, brought about a gradual change in trade, and, for the first time, the extensive gold, ivory trade, and salt resources of the region could be sent north and east to population centers in North Africa, the Middle East and Europe in exchange for manufactured goods.