The Mamluk dynasty gained control of Nablus in 1260 and during their reign, they built numerous mosques and schools. Under Mamluk rule, Nablus possessed running water, many Turkish baths and exported olive oil and soap to Egypt, Syria, the Hejaz, several Mediterranean islands, and the Arabian Desert. The city's olive oil was also used in the Umayyad Mosque in Damascus. Ibn Battuta, the Arab explorer, visited Nablus in 1355, and described it as a city "full of trees and streams and full of olives." He noted that the city grew and exported carob jam to Cairo and Damascus.