The ten commandments without laws that were given to Moses by God for his people. They were written on two stone tablets, by the finger of God, on Mount Sinai these are the 10 laws:
1-you will not have other gods before me
2-you will not make for yourself sculpture, or any image, do not be inclined to them, you will not serve him
3-you will not take the name of your God in vain
4-You will keep the Sabbath (Sabbath)
5-Honor your father and mother so that your days on earth may be prolonged
6-you will not kill
7-you shall not commit adultery
8-you will not steal
9-you will not say false
testimonies against your neighbor
10-You shall not covet your neighbor's wife, nor his house, not any of your neighbor's.
The laws are part of the old covenant and also of the new covenant (grace through Jesus).
Jesus summarizes the ten commandments in two commandments, the first and great commandment
1love Jehovah your God with all your soul, with all your strength and with all your mind
The second is like you will love your neighbor as yourself.
In these verses we see the purpose for us
Deuteronomy 30:11
[11] Because this commandment that I am giving you today is not too difficult for you, nor is it far off.
Psalm 119: 93
[93] I will never, ever forget your commandments, for with them you have quickened me.
proverbs 19:16
[16] He who keeps the commandment guards his soul, but he who despises his ways will die.
John 14:15
[15] If you love me, keep my commandments.
1 Timothy 1: 5
[5] For the purpose of this commandment is love born of a clean heart, and of a good conscience, and of unfeigned faith,
1 John 3:22
[22] And whatever we ask, we will receive from him, because we keep his commandments and do things that are pleasing in his sight.
Revelation 14: 2
[2] And I heard a voice from heaven like the sound of many waters, and like the sound of great thunder; and the voice I heard was like harpists playing their harps.
God's purpose is always for our good because it brings us life that lights the way, it helps us walk in freedom as long as we rejoice in fulfilling his commandments, which is Christ Jesus, who is the perfect seal of love and through him we fulfill all the law.