Jesus had to die to fulfill Old Testament prophecies and to provide the only acceptable sacrifice for sin, as required by God's law. His death and resurrection are central to the gospel, reconciling humanity to God and establishing the New Covenant. Though religious leaders plotted against Him out of fear, pride, and jealousy, and Roman authorities yielded to political pressure, Jesus’s death was ultimately God's plan for salvation. Every group involved had their reasons—Pharisees, Sadducees, Pilate, and Judas—but God used even their sin to accomplish His redemptive purpose. Through Christ’s sacrifice, we are freed from God’s wrath and offered eternal life by faith.
God works in history. He works in the context of people and personalities and politics to teach us, correct us, and act on our behalf. In the time of Christ, the social milieu included super-legalistic Pharisees, power-hungry Sadducees, favor-seeking Herodians, Jewish priests, and Roman rulers maintaining a precarious order. In all of their history together, these groups may have agreed on only one thing: Jesus had to die.
The Pharisees wanted Jesus dead because He pointed out their sin and undermined their influence. Judas wanted Jesus dead because He was not the political champion Judas had hoped for. The Sadducees wanted Jesus dead to ensure the stability of their political position. Pilate didn't want Jesus dead, but he feared a riot. God used all of this to get His Son to the cross to die for our sins. Ultimately, it wasn't Jews or Romans or Pilate or Judas who put Jesus on the cross; it was greed, fear, jealousy and selfishness. However, all this fit into God’s plan for Jesus to die for our salvation.
Jesus died because of sin, and through His death, He justified us and saved us from God's wrath (Romans 5:9). "Christ redeemed us from the curse of the law by becoming a curse for us—for it is written, 'Cursed is everyone who is hanged on a tree'" (Galatians 3:13). Jesus died, so you wouldn’t have to bear the eternal consequences of sin and death. All who trust in Jesus’s death and resurrection for the forgiveness of sins are forgiven and will not experience the second death.