Some refuse to accept that the Bible is God’s Word and allege that it is fiction. They even accuse Christians of composing stories contained in the Bible to paint a nice picture of Jesus.
However, if one studies Scripture then these allegations fall through. For instance, the genealogy of Jesus in Mathew 1:1-18 contains some names which no one composing the genealogy with such an aim would have deliberately included.
There is Tamar who concealed her true identity in order to sleep with her own father in law, Judah, and she succeeded (Genesis 38).
Then there is Rahab who was a prostitute before she was converted to Judaism (Joshua 2:1). Another questionable character in the pedigree is Bathsheba who committed adultery with King David and this sin even led to death of her own husband, Uriah (2 Samuel 11-12).
In the family tree, you also meet King Manasseh who was one of worst and evil kings of Judah (2 Kings 21). If the Bible is a fiction that aims at painting a very nice and beautiful picture of Jesus then these characters fail the whole plot.
But the Bible is not fiction. It is God’s Word hence the truth because God is truth. God allowed these characters to be in the line of Jesus’ great grandparents probably to show us as one theologian remarked “God can use a crooked stick to strike a straight blow.”
The genealogy can also encourage us who do not have a good family tree by reminding us that God can change everything through us who are in Christ because if we are in Christ, we are a new creation. The old has passed away… the new has come (2 Corinthians 5:17).