Complex sentence: The baths were built around the 14th century, after Gibraltar's occupation by Abu al-Hasan Ali ibn Othman, (a source dates the baths to 1355) during the rule of the Marinid dynasty.
Split into simpler sentences: The baths were built around the 14th century, after Gibraltar's occupation by Abu al-Hasan Ali ibn Othman. One source dates the baths to 1355 during the rule of the Marinid dynasty.