Here are both of the genealogies of Jesus given to us by Matthew and Luke, showing both Mary and Joseph’s lineage. Similar to Adam, Jesus had no earthly biological father, and in that way both Jesus and Adam could be called “sons of God.” Yet just like the rest of humanity, Jesus was a real person with a real lineage, and in that way he can be called a “son of man.” Ironically, although being a son of man implies humanity, the one “like a son of man” in Daniel 7 refers to God’s unique and “set apart” One to come in the last days. This was also Jesus’ favorite name for himself (Matthew 8:20, Matthew 8:20, Luke 22:48). So the title “Son of man” actually points to the deity of Christ as the true Son of God.
We see in these genealogies that Jesus’ parents both descended from David, also fulfilling prophecy (Psalm 132:11, Jeremiah 23:5-6). What is fascinating about Matthew’s list is that he includes four women, all of whom were likely Gentiles (non-Jews), and at least three of whom are known to have been involved in some kind of immorality. Instead of leaving them out, which would have been easier, by listing these women Matthew proudly shows that Jesus is both our God and Redeemer, full of grace and truth, who came to love and save sinners. These four women became the mothers of our King and Savior, Jesus Christ.

MATTHEW 1
The Genealogy of Jesus Christ
1 aThe book of the genealogy of Jesus Christ, bthe son of David, cthe son of Abraham.
2 dAbraham was the father of Isaac, and eIsaac the father of Jacob, and fJacob the father of Judah and his brothers, 3 and gJudah the father of Perez and Zerah by Tamar, and Perez the father of Hezron, and Hezron the father of Ram,1 4 and Ram the father of Amminadab, and Amminadab the father of Nahshon, and Nahshon the father of Salmon, 5 and Salmon the father of Boaz by hRahab, and Boaz the father of Obed by Ruth, and Obed the father of Jesse, 6 and iJesse the father of David the king.
And jDavid was the father of Solomon by kthe wife of Uriah, 7 and lSolomon the father of Rehoboam, and Rehoboam the father of Abijah, and Abijah the father of Asaph,2 8 and Asaph the father of Jehoshaphat, and Jehoshaphat the father of Joram, mand Joram the father of Uzziah, 9 and Uzziah the father of Jotham, and Jotham the father of Ahaz, and Ahaz the father of Hezekiah, 10 and Hezekiah the father of Manasseh, and Manasseh the father of Amos,3 and Amos the father of Josiah, 11 and nJosiah the father of oJechoniah and his brothers, at the time of the deportation to Babylon.
12 And after the deportation to Babylon: pJechoniah was the father of qShealtiel,4 and rShealtiel the father of Zerubbabel, 13 and Zerubbabel the father of Abiud, and Abiud the father of Eliakim, and Eliakim the father of Azor, 14 and Azor the father of Zadok, and Zadok the father of Achim, and Achim the father of Eliud, 15 and Eliud the father of Eleazar, and Eleazar the father of Matthan, and Matthan the father of Jacob, 16 and Jacob the father of sJoseph the husband of Mary, of whom Jesus was born, who is called Christ.
17 So all the generations from Abraham to David were fourteen generations, and from David to the deportation to Babylon fourteen generations, and from the deportation to Babylon to tthe Christ fourteen generations.
LUKE 3
The Genealogy of Jesus Christ
23 Jesus, when he began his ministry, was about thirty years of age, being the son (as was supposed) of Joseph, the son of Heli, 24 the son of Matthat, the son of Levi, the son of Melchi, the son of Jannai, the son of Joseph, 25 the son of Mattathias, the son of Amos, the son of Nahum, the son of Esli, the son of Naggai, 26 the son of Maath, the son of Mattathias, the son of Semein, the son of Josech, the son of Joda, 27 the son of Joanan, the son of Rhesa, the son of Zerubbabel, the son of Shealtiel, the son of Neri, 28 the son of Melchi, the son of Addi, the son of Cosam, the son of Elmadam, the son of Er, 29 the son of Joshua, the son of Eliezer, the son of Jorim, the son of Matthat, the son of Levi, 30 the son of Simeon, the son of Judah, the son of Joseph, the son of Jonam, the son of Eliakim, 31 the son of Melea, the son of Menna, the son of Mattatha, the son of Nathan, the son of David, 32 the son of Jesse, the son of Obed, the son of Boaz, the son of Sala, the son of Nahshon, 33 the son of Amminadab, the son of Admin, the son of Arni, the son of Hezron, the son of Perez, the son of Judah, 34 the son of Jacob, the son of Isaac, the son of Abraham, the son of Terah, the son of Nahor, 35 the son of Serug, the son of Reu, the son of Peleg, the son of Eber, the son of Shelah, 36 the son of Cainan, the son of Arphaxad, the son of Shem, the son of Noah, the son of Lamech, 37 the son of Methuselah, the son of Enoch, the son of Jared, the son of Mahalaleel, the son of Cainan, 38 the son of Enos, the son of Seth, the son of Adam, the son of God.