Catechism of the Catholic Church
2238 Those subject to authority should regard those in authority as representatives of God, who has made them stewards of his gifts: 43 "Be subject for the Lord's sake to every human institution.... Live as free men, yet without using your freedom as a pretext for evil; but live as servants of God." 44 Their loyal collaboration includes the right, and at times the duty, to voice their just criticisms of that which seems harmful to the dignity of persons and to the good of the community.
2239 It is the duty of citizens to contribute along with the civil authorities to the good of society in a spirit of truth, justice, solidarity, and freedom. The love and service of one's country follow from the duty of gratitude and belong to the order of charity. Submission to legitimate authorities and service of the common good require citizens to fulfill their roles in the life of the political community.
2240 Submission to authority and co-responsibility for the common good make it morally obligatory to pay taxes, to exercise the right to vote, and to defend one's country:
Pay to all of them their dues, taxes to whom taxes are due, revenue to whom revenue is due, respect to whom respect is due, honor to whom honor is due. 45
[Christians] reside in their own nations, but as resident aliens. They participate in all things as citizens and endure all things as foreigners.... They obey the established laws and their way of life surpasses the laws.... So noble is the position to which God has assigned them that they are not allowed to desert it. 46
The Apostle exhorts us to offer prayers and thanksgiving for kings and all who exercise authority, "that we may lead a quiet and peaceable life, godly and respectful in every way." 47
2241 The more prosperous nations are obliged, to the extent they are able, to welcome the foreigner in search of the security and the means of livelihood which he cannot find in his country of origin. Public authorities should see to it that the natural right is respected that places a guest under the protection of those who receive him.
Political authorities, for the sake of the common good for which they are responsible, may make the exercise of the right to immigrate subject to various juridical conditions, especially with regard to the immigrants' duties toward their country of adoption. Immigrants are obliged to respect with gratitude the material and spiritual heritage of the country that receives them, to obey its laws and to assist in carrying civic burdens.
2242 The citizen is obliged in conscience not to follow the directives of civil authorities when they are contrary to the demands of the moral order, to the fundamental rights of persons or the teachings of the Gospel. Refusing obedience to civil authorities, when their demands are contrary to those of an upright conscience, finds its justification in the distinction between serving God and serving the political community. "Render therefore to Caesar the things that are Caesar's, and to God the things that are God's." 48 "We must obey God rather than men": 49
When citizens are under the oppression of a public authority which oversteps its competence, they should still not refuse to give or to do what is objectively demanded of them by the common good; but it is legitimate for them to defend their own rights and those of their fellow citizens against the abuse of this authority within the limits of the natural law and the Law of the Gospel. 50
2243 Armed resistance to oppression by political authority is not legitimate, unless all the following conditions are met: 1) there is certain, grave, and prolonged violation of fundamental rights; 2) all other means of redress have been exhausted; 3) such resistance will not provoke worse disorders; 4) there is well-founded hope of success; and 5) it is impossible reasonably to foresee any better solution.
English Translation of the Cathechism of the Catholic Church for the United States of America © 1997, United States Catholic Conference, Inc.