Fasting is abstaining from food in order to pray to God. Fasting in the Bible was resorted to for different reasons and motives. Daniel fasted and persisted in prayer for 21 days till he got an answer from God through an Angel. Some people like David fasted and sought God to reverse judgement though this was not granted because God was determined to execute it.