In other words, the Jordanian occupation of the West Bank at first came about thanks to a prior agreement with the Jews, but it remained in Hashemite hands thereafter due to the tenacious defensive efforts of the Jordanians and the Iraqi forces that helped repel Israeli attacks.