The history of this festival dates back to the time when the twelfth Imam of the Shia Muslims named Muhammad al-Mahdi was born. The night of Shab-e-Barat is celebrated as his birthday. On the other hand, the Sunni Muslim community believes that on this day only, God saved the Ark of Noah from the flood.