The Catechism in Questions & Answers

280. What is the function of God’s commandments?

God has given commandments to mankind. In them He proclaims His will for the benefit of mankind. The commandments bring to expression how human beings should structure their relationship with God. In addition, the commandments are the foundation for positive relationships between human beings.