Ayyubid dynasty
The importance of Shoubak reached its peak after Baldwin I of Jerusalem took control of it, cutting the roots between Egypt and Syria, the Montreal castle was built on top of a hill there in 1115. Shoubak was then annexed to the Ayyubid dynasty by Saladin in 1187.