Fasting the month of Ramadān was made obligatory (wājib) during the month of Sha’bān, in the second year after the Muslims migrated from Makkah to Madīnah. Fasting the month of Ramadan is one of the Five Pillars of Islam. .