CCC 2108

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 AAS — Acta Apostolicae Sedis (official gazette of the Holy See). 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. DH 2.

Read the full chapter 1. You Shall Love the Lord Your God with All Your Heart, and with All Your Soul, and with All Your Mind ¶2083–2195

Cited in 3