Everyone is separated from God because of sin. Whenever we think or do something wrong its sin, and sin must be judged. But God loves you and wants friendship with you. He is perfect, so He came to suffer in your place as your substitute. Without Jesus we can never be forgiven. Jesus is the way to God.
For Christ also suffered once for sins, the righteous for the unrighteous, to bring us to God. - 1 Peter 3:18
But He was pierced through for our transgressions. He was crushed for our iniquities, the punishment that brought us peace was upon Him, and by His wounds we are healed. We all, like sheep, have gone astray, each of us has turned to his own way; and the Lord has laid on Him the iniquity of us all. - Isaiah 53:5-6