In the 9th century Bethlehem went through control of the Islamic caliphates of the Abbasids , then in the 8th century the Umayyads .
Bethlehem then passed through the control of the Islamic caliphates of the Umayyads in the 8th century , then the Abbasids in the 9th century .