Before this time, Herod had arrested John. He had him chained and put in prison. He arrested John because of Herodias, the wife of Philip, Herod’s brother.
Herod himself had ordered his soldiers to arrest John and put him in prison. Herod did this to please his wife Herodias. She had been married to Herod’s brother Philip, but then Herod married her.