When is fighting allowed in Islam, and is it only in self-defence?

Peace, war, jihad and violenceQuran · 4Sources · 1

Short answer

The Quran permits fighting those who fight Muslims or drive them from their homes, and fighting to rescue the oppressed who cry for help. It forbids aggression and says to stop when the enemy stops. Many modern scholars hold that war is lawful only for defence and protection from oppression.

The fuller answer

A key verse that gave permission to fight, which many commentators regard as among the first, speaks of Muslims who had suffered years of persecution in Mecca and were driven from their homes only because they said 'our Lord is Allah'. The same verse adds that, had Allah not repelled some people by others, monasteries, churches, houses of prayer and mosques where Allah's name is often mentioned would have been destroyed. The same passage thus speaks with respect of the places of worship of other faiths. Another verse calls Muslims to defend the men, women and children who are oppressed and cry out for rescue.

The Quran states the limit clearly: 'Fight in the way of Allah those who fight you, but do not transgress; Allah does not love the transgressors.' The Prophet ﷺ taught his followers not to wish for an encounter with the enemy and to ask Allah for safety. Most classical scholars therefore hold that war is declared by a legitimate authority and not by a group acting alone, and that it is bound by rules that protect civilians and prisoners.

Scholars have differed over the details. Many classical jurists held that the reason for fighting is the enemy's hostility, not his disbelief, while others, in the setting of the empires of their own time, also wrote about extending the borders of the state. Many contemporary scholars hold that war is justified only to defend land, life and religious freedom, in line with modern international law.

From the Quran

أُذِنَ لِلَّذِينَ يُقَٰتَلُونَ بِأَنَّهُمْ ظُلِمُوا۟ ۚ وَإِنَّ ٱللَّهَ عَلَىٰ نَصْرِهِمْ لَقَدِيرٌ ﴿٣٩﴾ ٱلَّذِينَ أُخْرِجُوا۟ مِن دِيَٰرِهِم بِغَيْرِ حَقٍّ إِلَّآ أَن يَقُولُوا۟ رَبُّنَا ٱللَّهُ ۗ وَلَوْلَا دَفْعُ ٱللَّهِ ٱلنَّاسَ بَعْضَهُم بِبَعْضٍۢ لَّهُدِّمَتْ صَوَٰمِعُ وَبِيَعٌۭ وَصَلَوَٰتٌۭ وَمَسَٰجِدُ يُذْكَرُ فِيهَا ٱسْمُ ٱللَّهِ كَثِيرًۭا ۗ وَلَيَنصُرَنَّ ٱللَّهُ مَن يَنصُرُهُۥٓ ۗ إِنَّ ٱللَّهَ لَقَوِىٌّ عَزِيزٌ ﴿٤٠﴾

Sanction is given unto those who fight because they have been wronged; and Allah is indeed Able to give them victory; Those who have been driven from their homes unjustly only because they said: Our Lord is Allah - For had it not been for Allah's repelling some men by means of others, cloisters and churches and oratories and mosques, wherein the name of Allah is oft mentioned, would assuredly have been pulled down. Verily Allah helpeth one who helpeth Him. Lo! Allah is Strong, Almighty -

وَقَٰتِلُوا۟ فِى سَبِيلِ ٱللَّهِ ٱلَّذِينَ يُقَٰتِلُونَكُمْ وَلَا تَعْتَدُوٓا۟ ۚ إِنَّ ٱللَّهَ لَا يُحِبُّ ٱلْمُعْتَدِينَ ﴿١٩٠﴾

Fight in the way of Allah against those who fight against you, but begin not hostilities. Lo! Allah loveth not aggressors.

وَمَا لَكُمْ لَا تُقَٰتِلُونَ فِى سَبِيلِ ٱللَّهِ وَٱلْمُسْتَضْعَفِينَ مِنَ ٱلرِّجَالِ وَٱلنِّسَآءِ وَٱلْوِلْدَٰنِ ٱلَّذِينَ يَقُولُونَ رَبَّنَآ أَخْرِجْنَا مِنْ هَٰذِهِ ٱلْقَرْيَةِ ٱلظَّالِمِ أَهْلُهَا وَٱجْعَل لَّنَا مِن لَّدُنكَ وَلِيًّۭا وَٱجْعَل لَّنَا مِن لَّدُنكَ نَصِيرًا ﴿٧٥﴾

How should ye not fight for the cause of Allah and of the feeble among men and of the women and the children who are crying: Our Lord! Bring us forth from out this town of which the people are oppressors! Oh, give us from thy presence some protecting friend! Oh, give us from Thy presence some defender!

لَّا يَنْهَىٰكُمُ ٱللَّهُ عَنِ ٱلَّذِينَ لَمْ يُقَٰتِلُوكُمْ فِى ٱلدِّينِ وَلَمْ يُخْرِجُوكُم مِّن دِيَٰرِكُمْ أَن تَبَرُّوهُمْ وَتُقْسِطُوٓا۟ إِلَيْهِمْ ۚ إِنَّ ٱللَّهَ يُحِبُّ ٱلْمُقْسِطِينَ ﴿٨﴾

Allah forbiddeth you not those who warred not against you on account of religion and drove you not out from your homes, that ye should show them kindness and deal justly with them. Lo! Allah loveth the just dealers.

Sources