“And Jacob begat Joseph the husband of Mary, of whom was born Jesus, who is called Christ.”
Matthew 1:16 — Greek Interlinear
Church Fathers on Matthew 1:16
In the last place, after all the patriarchs, he sets down Joseph the husband of Mary, for whose sake all the rest are introduced, saying, 'But Jacob begot Joseph.'
This passage is objected to us by the Emperor Julian in his Discrepancy of the Evangelists. Matthew calls Joseph the son of Jacob, Luke makes him the son of Heli. He did not know the Scripture manner, one was his father by nature, the other by law. For we know that God commanded by Moses, that if a brother or near kinsman died without children, another should take his wife, to raise up seed to his brother or kinsman. [Deut 25]
For Matthan and Melchi at different periods had each a son by one and the same wife Jesca. Matthan, who traced through Solomon, first had her, and died leaving one son, Jacob by name. As the Law forbade not a widow, either dismissed from her husband, or after the death of her husband, to be married to another, so Melchi, who traced through Matthan, being of the same tribe but of another race, took this widow to his wife, and begat Heli his son.