The first two chapters of Matthew focus on Jesus' genealogy (through Joseph) and His birth. His birth story is told from the viewpoint of prophecies fulfilled in his birth. Five prophecies are told in these two chapters.
First - He will be born of a virgin.
Second - He will be born in Bethlehem
Third - I called my son out of Egypt
Fourth - Mothers weeping and mourning the loss of their sons.
Fifth - He will be a Nazarene.
Then all the things God had to orchestrate to fulfill these five prophecies are laid out. A truly miraculous birth...and a God who provides.