but with my great-great-grandmother marrying an aal ghaanem , a treaty was struck with saraya to annex the region , with terms for autonomy while under sarayan rule and with provisions for secession if those terms were n't observed .