The mocking of Jesus occurred several times, after his trial and before his crucifixion according to the canonical gospels of the New Testament. It is considered part of Jesus' passion.
According to the gospel narratives, Jesus had predicted that he would be mocked (Matthew 20:19, Mark 10:34, and Luke 18:32). The mocking of Christ took place in three stages: immediately following his trial, immediately following his condemnation by Pontius Pilate, and when he was on the cross.
The New Testament narratives of Jesus being mocked are filled with irony, while the mockery focuses on Jesus' prophetic and kingly roles.
After Jesus' condemnation by the Sanhedrin, some spat on him (Mark 14:65). He was blindfolded and beaten, and then mocked: "Prophesy! Who hit you?" (Luke 22:63). This was done by those men who "held Jesus" (Luke 22:63, King James Version). The New International Version translates this as "the men who were guarding Jesus", but Joel B. Green takes the phrase to refer to the "Chief priests, the officers of the temple police, and the elders" mentioned in verse 52.
Green suggests that Jesus suffers the mockery that is typical of prophets, and that it indicates his "solidarity with God's agents who speak on God's behalf and are rejected." Susan R. Garrett sees Mark's inclusion of the mockery as an example of irony, since Jesus is indeed a prophet, at the very moment his prophecy that Peter would deny him was being fulfilled. The prophetic assignment is not always portrayed as positive in the Bible, and prophets were often the target of persecution and opposition.
After his condemnation by Pontius Pilate, Jesus was flogged and mocked by Roman soldiers. They clothed him with a "purple" (Mark 15:17) or "scarlet" (Matt. 27:28) robe symbolizing a royal gown since purple was a royal color, put a crown of thorns on his head symbolizing a royal crown, and put a staff in his hand symbolizing a scepter. They then knelt before him and said, "Hail, king of the Jews!" (Matt. 27:29). This was done as a mockery of Jesus' kingship. After this, they spat on him and struck him on the head with the staff repeatedly.