During the 12th and 13th centuries, there were a series of conflicts between those states and the surrounding Islamic states.