Jesus was beaten and tortured in front of a mob who wanted Him dead, but He knew God was in ultimate control
So Pilate then took Jesus, and flogged him. The soldiers twisted thorns into a crown, and put it on his head, and dressed him in a purple garment. They kept saying, “Hail, King of the Jews!” and they kept slapping him. Then Pilate went out again, and said to them, “Behold, I bring him out to you, that you may know that I find no basis for a charge against him.” Jesus therefore came out, wearing the crown of thorns and the purple garment. Pilate said to them, “Behold, the man!” When therefore the chief priests and the officers saw him, they shouted, saying, “Crucify! Crucify!” Pilate said to them, “Take him yourselves, and crucify him, for I find no basis for a charge against him.” The Jews answered him, “We have a law, and by our law he ought to die, because he made himself the Son of God.” When therefore Pilate heard this saying, he was more afraid. He entered into the Praetorium again, and said to Jesus, “Where are you from?” But Jesus gave him no answer. Pilate therefore said to him, “Aren’t you speaking to me? Don’t you know that I have power to release you and have power to crucify you?” Jesus answered, “You would have no power at all against me, unless it were given to you from above. Therefore he who delivered me to you has greater sin.”
from Good Friday topic