"Nobody may be forced to act against his convictions, nor is anyone to be restrained from acting in accordance with his conscience in religious matters in private or in public, alone or in association with others, within due limits." (DHDignitatis humanae 2 # 1) This right is based on the very nature of the human person, whose dignity enables him freely to assent to the divine truth which transcends the temporal order. For this reason it "continues to exist even in those who do not live up to their obligation of seeking the truth and adhering to it." (DHDignitatis humanae 2 # 2)
CCC 2110
"If because of the circumstances of a particular people special civil recognition is given to one religious community in the constitutional organization of a state, the right of all citizens and religious communities to religious freedom must be recognized and respected as well." (DHDignitatis humanae 6 # 3)
The right to religious liberty is neither a moral license to adhere to error, nor a supposed right to error (Cf. Leo XIII, Libertas praestantissimum 18; Pius XII AASActa Apostolicae Sedis 1953, 799), but rather a natural right of the human person to civil liberty, i.e., immunity, within just limits, from external constraint in religious matters by political authorities. This natural right ought to be acknowledged in the juridical order of society in such a way that it constitutes a civil right (Cf. DHDignitatis humanae 2).
The right to religious liberty can of itself be neither unlimited nor limited only by a "public order" conceived in a positivist or naturalist manner (Cf. Pius VI, Quod aliquantum (1791) 10; Pius IX, Quanta cura 3). The "due limits" which are inherent in it must be determined for each social situation by political prudence, according to the requirements of the common good, and ratified by the civil authority in accordance with "legal principles which are in conformity with the objective moral order." (DHDignitatis humanae 7 # 3)
The first commandment forbids honoring gods other than the one Lord who has revealed himself to his people. It proscribes superstition and irreligion. Superstition in some sense represents a perverse excess of religion; irreligion is the vice contrary by defect to the virtue of religion.
Superstition
Superstition is the deviation of religious feeling and of the practices this feeling imposes. It can even affect the worship we offer the true God, e.g., when one attributes an importance in some way magical to certain practices otherwise lawful or necessary. To attribute the efficacy of prayers or of sacramental signs to their mere external performance, apart from the interior dispositions that they demand, is to fall into superstition (Cf. Mt 23:16-22).
Idolatry
The first commandment condemns polytheism. It requires man neither to believe in, nor to venerate, other divinities than the one true God. Scripture constantly recalls this rejection of "idols, (of) silver and gold, the work of men's hands. They have mouths, but do not speak; eyes, but do not see." These empty idols make their worshippers empty: "Those who make them are like them; so are all who trust in them." (Ps 115:4-5, 8; cf. Isa 44:9-20; Jer 10:1-16; Dan 14:1-30; Bar 6; Wis 13: 1- 15:19) God, however, is the "living God" (Josh 3:10; Ps 42:3; etc.) who gives life and intervenes in history.
Idolatry not only refers to false pagan worship. It remains a constant temptation to faith. Idolatry consists in divinizing what is not God. Man commits idolatry whenever he honors and reveres a creature in place of God, whether this be gods or demons (for example, satanism), power, pleasure, race, ancestors, the state, money, etc. Jesus says, "You cannot serve God and mammon." (Mt 6:24) Many martyrs died for not adoring "the Beast" (Cf. Rev 13-14) refusing even to simulate such worship. Idolatry rejects the unique Lordship of God; it is therefore incompatible with communion with God (Cf. Gal 5:20; Eph 5:5).
Human life finds its unity in the adoration of the one God. the commandment to worship the Lord alone integrates man and saves him from an endless disintegration. Idolatry is a perversion of man's innate religious sense. An idolater is someone who "transfers his indestructible notion of God to anything other than God." (Origen, Contra Celsum 2, 40: PGPatrologia Graeca (J. P. Migne) 11, 861)