The Decalogue in the Church's Tradition
The Ten Commandments state what is required in the love of God and love of neighbor. The first three concern love of God, and the other seven love of neighbor.
As charity comprises the two commandments to which the Lord related the whole Law and the prophets . . . So the Ten Commandments were themselves given on two tablets. Three were written on one tablet and seven on the other.
Source: Catechism of the Catholic Church (Vatican.va)