2 Corinthians 5:21 For He made Him who knew no sin to be sin for us, that we might become the righteousness of God in Him.
It may be difficult for us to understand how Christ could like a sinless life being in a world which is so corrupt; or how He could be sinless being born of Mary.
But it was the Holy Spirit who enabled Mary to have a child without a human man – this was by God’s design.
Christ gave that all up to accept our sin onto His shoulders and to die in our stead so we can be free from that sin.
He is our Righteousness. He took away our sins.