Therefore by the deeds of the law there shall no flesh be justified in his sight: for by the law is the knowledge of sin.
So, doing good deeds can't make anyone right with God; instead, the law shows us what sin is.
* Work in progress - there may be occasional inaccuracies