 John was in prison in chapter 1, verse 14, the same time that Jesus' ministry starts. And he's in prison for angering Herodias, the wife of Herod Antipas, who is the son of Herod, but not so great, and the brother of Herod Philip. Herod is a real popular family name for these guys.