The Gospel of Matthew starts by stating the names of ancestors of Jesus Christ. Does that have any significance other than to establish that Jesus was a descendant of King David?
There are several lessons to be drawn from this genealogy. One of my personal favorites is the four women mentioned: Tamar, Rahab, Ruth, and Mary. Each of these women's stories is mentioned in Scripture, and each has a less than stellar reputation.
Even beyond the women, Jesus takes the good and the bad. Yes, David was good and Solomon was wise - but Manesseh's evil was equally on display. Being God, it is not just "an accident of nature." God chose each and every one of these - good and bad alike - to be his forefathers and foremothers. He came to seek and save everyone. He came to seek and save the lost.
Here's the idea - these were not all the pure Queens and noble Kings that the world looks upon. Prompted by the Holy Spirit, Matthew included some awfully shady seeming characters. Why? Because the God who became Man came for precisely this kind of person! Jesus was a King - he was descended from David. But he was not aloof. He came to seek and save even people like this!
The Gospel of Matthew begins, "The book of the generation of Jesus Christ, the son of David, the son of Avraham."
Thus, this is what is intended to immediately capture the reader's attention. And, why is this?
To Avraham, God said (Gen. 22:18), "And all the nations of the earth shall be blessed in your seed because you obeyed My voice."
To David, God said (Ps. 132:11), "...Of the fruit of your body will I set upon your throne."
The fruit of David's loins was Jesus Christ (Acts 2:30).
Therefore, Matthew intends to establish the fulfillment of God's promises to Avraham and David, thereby declaring that Jesus is the Christ (Messiah).