The law is the righteous requirements given to the nation of Israel to keep them seperate from the Gentile nations for the purpose of being a light of God's love to the Gentile nations. The law was the standard of righteousness.
This would include the Ten Commandments and the two great commandments to love God with all your heart, soul, mind, and strength and to love others as you love yourself. It would also include everything else in Exodus 19-Deuteronomy.
The Gentiles were never under the law.