It was rebuilt in 629 but partially destroyed by an insane Egyptian caliph in the early 11th century.
There was an Egyptian caliph in the early 11th century.
that kind of that kind of put you out on a limb a little bit i guess