The mosque, which had been abandoned and partly ruined for years, has been undergoing a major restoration that started in 2007. The mosque, whose roof was gone and whose interior was exposed to the elements, was cleared of plants and vegetation. The first phase, completed in 2008, consolidated the foundations of the mosque and stopped the seepage of underground water into the structure. In 2011 restoration work was paused, either because of the ongoing Egyptian revolution or because of problems discovered in the materials used for reconstruction. Work resumed in 2018. The second phase will involve the paving of the mosque's floors and the reconstruction of its roof, dome, and minaret. The last phase will restore its decoration and will reconstitute its minbar (pulpit), whose remaining pieces had been kept in storage. The budget of the restoration works is 100 million Egyptian pounds, paid for by the Egyptian government and the government of Kazakhstan (in tribute to Baybars being born in present-day Kazakhstan).