 Under Barrak ibn Ghurayr of the Al Humaid, the Bani Khalid were able to expel Ottoman forces from the cities and towns in 1670 and proclaim their rule over the region.Ibn Ghurayr made his capital in Al-Mubarraz, where remnants of his castle stand today.According to Arabian folklore, one chief of the Bani Khalid attempted to protect the prized desert bustard (Habari) from extinction by prohibiting the bedouin in his realm from poaching the bird's eggs, earning the tribe the appellation of "protectors of the eggs of the Habari", an allusion to the chief's absolute supremacy over his realm.