(8) For by grace you have been saved through faith, and that not of yourselves; it is the gift of God, (9) not of works, lest anyone should boast. (10) For we are His workmanship, created in Christ Jesus for good works, which God prepared beforehand that we should walk in them. New King James Version Change your email Bible version
The right works do not earn us salvation, yet we are created for good works. God ordained this from the very beginning. It is the right works that make life worth living, that prove to God our understanding of His purpose, and show His love in us. That love is then shown to the world and ensures that the proper witness is made for Him.
It is incredible but true that people worry and argue whether keeping the commandments of God are required as works. Of course they are! Remember, "By grace are you saved," as well as that we have been created for good works.
The book of Ephesians is about unity, about diverse people—the Gentiles on the one hand and the Jews, primarily the Israelites, on the other—living together as part of a common body. What we have in common is Jesus Christ; He is the Savior of both. What do we have to do so that we can live together? What will make life worthwhile? The right kind of works, righteous deeds and acts.
It is the same principle as in marriage. What enables two different people to live together in marriage? The right kind of works, that is, how they conduct themselves.