Why does Joseph's genealogy matter to Jesus since he wasn't the real father?

Why does Joseph's genealogy have relevance to the Lord when Joseph was not His natural father?

Matthew begins with, 'The book of the generation of Jesus Christ, the son of David." His purpose is to present our Lord Jesus as the Son of David Who will reign as king, sitting on the throne of David. Matthew shows that Joseph had descended from David through Solomon, and therefore had the legal rights to the throne. Matthew lists 15 kings by name, but only David is referred to as king (verse 6). Jechonias is the last king named in the genealogy. Concerning him, Jeremiah 22:30 says, "No man of his seed shall prosper, sitting upon the throne of David."

When Joseph obeyed the angel of the Lord and took Mary as his wife (Matthew 1:20,24), he also accepted her son as his. Our Lord Jesus thus inherited the legal rights to the throne of David. Since Joseph was not his natural father, He did not inherit the curse of Jechonias. It is wonderful how God worked it out!

W. Gustafson