14 generations Abraham to David – 14 generations David to Josiah (during the deportation to Babylon) – 14 generations Jeconiah (after the deportation to Babylon) to Joseph the husband of Mary, of whom Jesus was born, who was called Christ [Messiah]. Mary was pregnant, and an angel told Joseph to wed her. The child was conceived by the Holy Spirit. The angel said to name the child Jesus [salvation or deliverance] for He will save his people from their sins in fulfillment of the Bible.
God preserved Israel so that He would save His people from their sins and His just wrath through Jesus.