What does the Catholic Church teach about Earning Salvation by Good Works?

The Catholic Church has never taught such a doctrine. In fact, it has consistently condemned the notion that we can earn salvation. Only by God’s grace, completely unmerited by works, is one saved.