The Ka'bah in Mecca has been reconstructed 12 times throughout history. The first five reconstructions are analyzed. Originally built by Adam at Allah's command, it was later rebuilt by Ibrahim and Ismail after the flood of Nuh. The Quraysh and the Prophet reconstructed it before his prophethood due to weak foundations from floods. Subsequent reconstructions were done by Abdullah ibn Zubair and Hajjaj ibn Yusuf to bring the Ka'bah to the form that exists today.