Short answer
Yes. If you face real danger of death or serious harm from hunger and nothing halal is available, the Quran allows you to eat pork or other haram meat, and in the Hanafi school it becomes obligatory to eat enough to survive. You may take only what keeps you alive, and only while the need lasts.
In true necessity (darura), eating haram food to save one's life is wajib, and refusing it to the point of death is sinful. The permission covers only the amount that removes the danger, not eating to fullness or storing it.
Other madhhabs
- Maliki
- The person in necessity may eat until full and carry some with him if the need is expected to continue.
Explanation
The Quran names carrion, blood and pork as forbidden in several places, and each time adds the exception of necessity: whoever is forced, neither desiring it nor going beyond the limit, commits no sin. Allah does not want His servants to die for the sake of a rule He Himself relaxed.
What counts as necessity:
- a real risk of death or serious harm from hunger;
- nothing halal available, including vegetarian food, fish, bread or eggs;
- no reasonable way out of the situation in time.
Being at a work dinner, on a flight or in a country where halal meat is hard to find is not necessity: there is almost always something halal to eat. Food that is halal but unappealing must be eaten before anything haram.
The limits: neither desiring nor going beyond. In the Hanafi school you eat enough to remove the danger, not to enjoy it or fill up, and the permission ends once halal food is within reach. The same rule applies if someone forces you with a real threat to your life. Wine may be drunk only in the same kind of emergency (see how much alcohol is haram). Medicines are a separate topic: see medicine from pigs.
The evidence
Quran, Surah Al-Baqara 2:173
إِنَّمَا حَرَّمَ عَلَيْكُمُ ٱلْمَيْتَةَ وَٱلدَّمَ وَلَحْمَ ٱلْخِنزِيرِ وَمَآ أُهِلَّ بِهِۦ لِغَيْرِ ٱللَّهِ ۖ فَمَنِ ٱضْطُرَّ غَيْرَ بَاغٍۢ وَلَا عَادٍۢ فَلَآ إِثْمَ عَلَيْهِ ۚ إِنَّ ٱللَّهَ غَفُورٌۭ رَّحِيمٌ ﴿١٧٣﴾
He has only forbidden to you dead animals, blood, the flesh of swine, and that which has been dedicated to other than Allah. But whoever is forced [by necessity], neither desiring [it] nor transgressing [its limit], there is no sin upon him. Indeed, Allah is Forgiving and Merciful.
The exception for necessity, with its limits.
Quran, Surah Al-An'aam 6:119
وَمَا لَكُمْ أَلَّا تَأْكُلُوا۟ مِمَّا ذُكِرَ ٱسْمُ ٱللَّهِ عَلَيْهِ وَقَدْ فَصَّلَ لَكُم مَّا حَرَّمَ عَلَيْكُمْ إِلَّا مَا ٱضْطُرِرْتُمْ إِلَيْهِ ۗ وَإِنَّ كَثِيرًۭا لَّيُضِلُّونَ بِأَهْوَآئِهِم بِغَيْرِ عِلْمٍ ۗ إِنَّ رَبَّكَ هُوَ أَعْلَمُ بِٱلْمُعْتَدِينَ ﴿١١٩﴾
And why should you not eat of that upon which the name of Allah has been mentioned while He has explained in detail to you what He has forbidden you, excepting that to which you are compelled. And indeed do many lead [others] astray through their [own] inclinations without knowledge. Indeed, your Lord - He is most knowing of the transgressors.
What is forbidden becomes allowed under compulsion.
Quran, Surah Al-Maaida 5:3
حُرِّمَتْ عَلَيْكُمُ ٱلْمَيْتَةُ وَٱلدَّمُ وَلَحْمُ ٱلْخِنزِيرِ وَمَآ أُهِلَّ لِغَيْرِ ٱللَّهِ بِهِۦ وَٱلْمُنْخَنِقَةُ وَٱلْمَوْقُوذَةُ وَٱلْمُتَرَدِّيَةُ وَٱلنَّطِيحَةُ وَمَآ أَكَلَ ٱلسَّبُعُ إِلَّا مَا ذَكَّيْتُمْ وَمَا ذُبِحَ عَلَى ٱلنُّصُبِ وَأَن تَسْتَقْسِمُوا۟ بِٱلْأَزْلَٰمِ ۚ ذَٰلِكُمْ فِسْقٌ ۗ ٱلْيَوْمَ يَئِسَ ٱلَّذِينَ كَفَرُوا۟ مِن دِينِكُمْ فَلَا تَخْشَوْهُمْ وَٱخْشَوْنِ ۚ ٱلْيَوْمَ أَكْمَلْتُ لَكُمْ دِينَكُمْ وَأَتْمَمْتُ عَلَيْكُمْ نِعْمَتِى وَرَضِيتُ لَكُمُ ٱلْإِسْلَٰمَ دِينًۭا ۚ فَمَنِ ٱضْطُرَّ فِى مَخْمَصَةٍ غَيْرَ مُتَجَانِفٍۢ لِّإِثْمٍۢ ۙ فَإِنَّ ٱللَّهَ غَفُورٌۭ رَّحِيمٌۭ ﴿٣﴾
Prohibited to you are dead animals, blood, the flesh of swine, and that which has been dedicated to other than Allah, and [those animals] killed by strangling or by a violent blow or by a head-long fall or by the goring of horns, and those from which a wild animal has eaten, except what you [are able to] slaughter [before its death], and those which are sacrificed on stone altars, and [prohibited is] that you seek decision through divining arrows. That is grave disobedience. This day those who disbelieve have despaired of [defeating] your religion; so fear them not, but fear Me. This day I have perfected for you your religion and completed My favor upon you and have approved for you Islam as religion. But whoever is forced by severe hunger with no inclination to sin - then indeed, Allah is Forgiving and Merciful.
Severe hunger is named as the case of necessity.
Where the ruling is recorded
- Radd al-Muhtar (Ibn Abidin), Kitab al-Hazr wa al-Ibaha. A person in dire need must eat enough carrion to survive, and refusing until death is sinful.
- Mukhtasar Khalil with al-Sharh al-Kabir, Bab al-Mubah, on permitted foods. The Maliki rules of necessity, including eating to fullness and taking provisions.
Checked by our team. For a more accurate answer to your own situation, consult a scholar. Quran translation by Sahih International. Hadith Arabic from the standard editions of the six books and the Muwatta, with gradings as recorded there; the English is our own rendering. Spotted a mistake? Tell us.