Jesus' betrayer Judas arrives at the Garden of Gethsemane and Jesus is arrested. Jesus remained silent until he was specifically charged under oath by the living God to tell them if he was the Christ, the Son of God. To that Jesus replied, "Yes, it is as you say." He also went on to say, "But I say to all of you: In the future you will see the Son of Man sitting at the right hand of the Mighty One and coming on the clouds of heaven."
This got an immediate response from the religious leaders who had gathered together. As far as they were concerned, Jesus was guilty of blasphemy. He deserved death.
While Jesus' trial is going on, Peter is being asked if he wasn't one of Jesus' disciples. Three times he denied knowing Jesus and immediately after he uttered his third denial, the rooster crowd. Peter went out and wept bitterly.
Judas, on the other hand, realized his error - he had handed over an innocent man. When he could not right what he had done, he went out and hanged himself.
Having reached their verdict, the religious leaders take Jesus to Pontius Pilate - the Roman governor in Jerusalem. The religious leaders could not outright kill Jesus. They needed Pilate to go along with them. Though Pilate came to the conclusion that Jesus was innocent, he handed him over to be crucified. He had given the people a choice of prisoners to be released. The people chose Barabbas instead of Jesus.