The Kaaba has been repaired and reconstructed many times sinceMuhammad's day.
Abd-Allah ibn al-Zubayr, an early Muslim who ruled Mecca for many years between the death of ʿAli and the consolidation of Ummayad power, is said to have demolished the old Kaaba and rebuilt it to include the hatīm, a semi-circular wall now outside the Kaaba. He did so on the basis of a tradition (found in several hadith collections[35]) that the hatīm was a remnant of the foundations of the Abrahamic Kaaba, and that Muhammad himself had wished to rebuild so as to include it.
This structure was destroyed (or partially destroyed) in 683, during the war between al-Zubayr and Umayyad forces commanded by Al-Hajjaj bin Yousef. Al-Hajjaj used stone-throwing catapults against the Meccans.
The Ummayads under ʿAbdu l-Malik ibn Marwan finally reunited all the former Islamic possessions and ended the long civil war. In 693 he had the remnants of al-Zubayr's Kaaba razed, and rebuilt on the foundations set by the Quraysh.[36] The Kaaba returned to the cube shape it had taken during Muhammad's lifetime.
During the Hajj of 930, the Qarmatians attacked Mecca, defiled the Zamzam Well with the bodies of pilgrims and stole the Black Stone, removing it to the oasis region of Eastern Arabia known as al-Aḥsāʾ, where it remained until the Abbasids ransomed it back in 952 CE.
Apart from repair work, the basic shape and structure of the Kaaba have not changed since then.[