This word is used here to mark a change in the main story. Here Matthew starts to tell a new part of the story.
"the king had handed John over to the prison" or "the king had arrested John"