The chapter begins with the book of the origin of Jesus Christ, son of David, son of Abraham. The genealogy runs through the patriarchs, the kings of Judah and David's descendants after the exile in Babylon until it reaches Joseph, the husband of Mary, of whom Jesus was born, who is called the Christ. Matthew arranges it in three groups of fourteen generations: Abraham to David, David to the exile, and the exile to Christ. Four women appear among the names, Tamar, Rahab, Ruth and the wife of Uriah, a reminder that God also works through foreigners and complicated stories.
Then Matthew tells the birth of Jesus. Mary was engaged to Joseph, but before they lived together she was found to be with child from the Holy Spirit. Joseph, a righteous man who did not want to expose her to public shame, planned to divorce her quietly. While he considered this, an angel of the Lord appeared to him in a dream, called him son of David and told him not to be afraid to take Mary as his wife, because what was conceived in her was from the Holy Spirit.
The angel told him the child would be named Jesus, because he would save his people from their sins. Matthew explains that all this fulfills what the prophet Isaiah said: the virgin will conceive and bear a son who will be called Immanuel, which means God with us. Joseph woke up, did as the angel commanded, took Mary as his wife and, when she gave birth to her son, named him Jesus.