Jesus was born of Mary. Joseph was not His father. Does the bloodline run through Mary’s descendants and thus fulfill all of the prophecies of Jesus?
Both Mary and Joseph were descendants of King David (Matthew 1:6, 17-18 and Luke 3:23-24, 31-32). Therefore, Mary provided the biological connection between King David to Jesus Christ. Joseph provided the legal connection or right of royalty ascension to the Davidic throne.
For further information we would encourage you to read “Joseph’s Genealogy” and “Mary’s Genealogy.”