Fight with them until there is no persecution and religion...
Fight with them until there is no persecution and religion should be only for Allah, but if they desist, then there should be no hostility except against the oppressors. The sacred month for the sacred month and all sacred things are under the law of retaliation. Whoever then acts aggressively against you, inflict injury on him according to the injury he has inflicted on you. Be careful of your duty to Allah and know that Allah is with those who guard against evil.
(2:190-194) From these holy verses, we can understand that such fighting is based on self-defense and warding off aggression. Therefore, such fighting is stopped when aggression is warded off.
Significance and Merit of Jihad Jihad entails great merit for man and striving nations and involves great significance in achieving the sacred goals that Almighty Allah has put before man in his advancement towards perfection—a march that cannot be consummated except by undergoing various sorts of “distress” and “affliction”. Exegetes have interpreted distress to be fighting.