Jesus and His disciples go into the Kidron Valley to the garden of Gethsemane, where they are met with a large number of soldiers. Jesus confronts the soldiers, finds out that they are looking for Jesus, and declares “I am,” echoing the the fact that He is God.
The soldiers come to take Jesus away and He tells them to let the disciples go. This was to fulfill what Jesus said in John 17, showing that John gives Jesus’ words the same weight as the Old Testament prophets.
Peter strikes a soldier on the ear, but Jesus tells him to but his sword back, healing the man.
Jesus is taken to Annas, but does not testify on his behalf, simply stating that He had been preaching publicly, and that if they want to know His teaching, they need only summon witnesses. Jesus is then taken to Caiaphas, who finds Him guilty of blasphemy and sends Jesus to Pilate for trial based on treason or sedition.