The Law does not make us holy. It does not make us good.
It acts as a mirror.
It shows us what perfection is. By comparing ourselves to It, we are shown that we are sinful.
To quote St. Paul:
"If righteousness could come by the Law, then Christ died in vain!"