John the Baptist main mission was to prepare the road for the Messiah. He had to testify that he came in the spirit of Elijah as what had told the Angel to his father, By that testimony the pharisees would believed that Jesus was the Messiah as it was writen in the old testament, that Elijah will come before the Messiah.