We are all created to exist eternally. Where we end up for eternity depends on whether we remain in rebellion to God and suffer eternal separation from Him (hell), or we surrender to Him, avoid hell, and live with Him eternally (heaven). God sends people to hell because He is perfectly righteous and just, and sin requires punishment. Hell is the default destination for humanity due to our sinful nature, which separates us from God both in life and in eternity. While God offers salvation through Jesus Christ, those who reject this offer choose separation from God and the consequences of their rebellion. Hell was originally created for Satan and his fallen angels, but it also becomes the eternal destination for those who refuse God's mercy and salvation. God's justice demands punishment for sin, but His love provides a way to avoid hell through faith in Jesus, offering eternal life instead of eternal separation.
Although God sends people to hell in His righteous justice and in response to people’s decisions to reject Him, we do not need to remain condemned. John 3:16–18 says, "For God so loved the world, that he gave his only Son, that whoever believes in him should not perish but have eternal life. For God did not send his Son into the world to condemn the world, but in order that the world might be saved through him. Whoever believes in him is not condemned, but whoever does not believe is condemned already, because he has not believed in the name of the only Son of God."
As God is just, He is also full of mercy. Because of His character of mercy and His love for people, He designed a way for people to avoid hell. He sent His Son, Jesus Christ, to take our punishment for us (Ephesians 2:8–9; Romans 6:23; 10:9; John 3:16–18). When we accept Jesus's sacrifice on the cross as a substitute for us (1 Peter 2:24), believe His statements about His divinity, and agree with Him about our sin, we can avoid hell. More than that, we can receive true life (John 10:10; Romans 6:23).