Many aspects of the Mosaic Law served to safeguard and guide the Israelites until the arrival of Christ. (Galatians 3:24)
... By means of the death of Jesus, God canceled that Law covenant, for it was no longer needed.—Colossians 2:13-17; Hebrews 8:13.