So all the generations from Abraham to David are fourteen generations, from David until the captivity in Babylon are fourteen generations, and from the captivity in Babylon until the Christ are fourteen generations.
The genealogies of Matthew 1 and Luke 3 give context to the life of Jesus Christ, the Son of God who also was the descendant of Abraham and David. Both David and Jesus were of the tribe of Judah (verse 3), the tribe promised the scepter—the symbol of rulership (Genesis 49:10). As Jesus said, He was born to be a King, and He will rule all nations in the Kingdom of God (John 18:37; Revelation 11:15).
Jesus was ethnically a Jew and grew up with a Jewish heritage. The genealogies help to link the Old and New Testaments into the unified whole that God intended. Though Jesus argued against many human traditions that had grown up around the religion of the Bible, He always showed respect for the inspired writings of what we now call the Old Testament and the laws revealed in it. This only makes sense when you consider that Christ was the “spiritual Rock” that followed and worked with ancient Israel (1 Corinthians 10:4).