In those days John the Baptist appears in the wilderness of Judea, preaching that people should repent because the kingdom of heaven is at hand. Matthew sees in him the one Isaiah described as a voice crying in the wilderness: prepare the way of the Lord. John wore camel's hair with a leather belt and ate locusts and wild honey. People from Jerusalem, all Judea and the region around the Jordan went out to him, confessed their sins and were baptized by him in the river.
When John sees many Pharisees and Sadducees coming to be baptized, he calls them a brood of vipers and demands fruit in keeping with repentance. He warns them that being descendants of Abraham is not enough, since God can raise up children for Abraham from stones, and that the ax is already laid at the root of the trees: every tree that does not bear good fruit is cut down and thrown into the fire. John baptizes with water for repentance, but he announces that one more powerful is coming, whose sandals he is not worthy to carry, who will baptize with the Holy Spirit and fire and will clear his threshing floor.
Then Jesus comes from Galilee to the Jordan to be baptized by John. John tries to stop him, saying that he is the one who needs to be baptized by Jesus. Jesus answers that it is fitting to do so to fulfill all righteousness, and John consents. As Jesus comes up out of the water, the heavens open, he sees the Spirit of God descending like a dove and coming upon him, and a voice from heaven says this is his beloved Son, with whom he is well pleased.