When Muslims are in minority in any community, the laws that apply to them may not be in harmony with Islamic teachings. How should a Muslim conduct himself in such a country? Of course he should be patriotic, particularly if he is born in that country. But when laws and regulations are in conflict with Islam, how should Muslims react? Can they participate in elections or join the armed forces? If they do and the country goes to war against a Muslim country, should they fight?
There have always been Muslim minorities in different cultures and societies. They have always been able to live with other communities in peace, creating no problems and observing the teachings of their faith. Islam teaches its followers to live in peace with other communities as long as they are not threatened in their persons, faith or property. When we live with other communities, we fulfil our obligations, whether as citizens or immigrants. In most case, there is no conflict between the fulfillment of our religious duties and abiding by the laws of the country we live in. Should such a conflict exist, we need to try to achieve a compromise that does not contravene Islamic principles.
Take for example the case of France and the attempts to force Muslim women student to discard their head covering. The Muslim community was able to protest and enforce a compromise that allowed Muslim women students to wear their head covering at school. They were able to do so, making use of the rights of citizen and the freedom they enjoy under French law to foil the attempt to force them to disobey the teachings of their faith. The problem may persist on a smaller scale, but when Muslims tackle it wisely, they will be able to win their case.
When a Muslim lives in non-Muslim society, there is contract between him and the society, which requires him to obey the laws of that society. He should do so except in any situation when the existing law is in conflict with Islamic teaching. We should remember that laws and regulations are promulgated to organize society and enable every one to live in it peacefully. They normally specify methods and practices that are allowed. These are often regulatory, giving choices that are available for individuals. A Muslim will make the choice that is in line with his faith. For example, when usury is allowed in certain society, Muslims living there do not have to resort to it. If they are offered more than the principal of the loan is, they should not take it.
Yes, Muslims living in a non-Muslim country should participate in the elections in their communities. They should cast their votes to the candidates who stand for strengthening community relations and allowing religious minorities to observe the teaching of their faith without difficulty.
In the extreme case when a Muslim serving in the army of a non-Muslim country finds himself having to fight against a Muslim country, he should make his position clear, stating that his religion prevents him from fighting against his brethren in faith. Normally this is accepted and he is relieved of combat duties. If he is forced to fight, he should resign from the force.