 John the Baptist, in his proclamation, in his prophecy, was calling the leaders to account, and he lost his head for it. And though not mentioned, is an eye towards Jesus. Jesus who fulfilled the role of a prophet, but also pointed to his own death and resurrection, that this is a part of God's plan in Jesus, so that when Jesus is raised from the dead, there would be hope.