Jeconiah and Shealtiel are included in Matthew's genealogy to show Jesus' legal descent to the throne of David through Joseph, who was a descendant of King Jeconiah. However, since Jesus was not biologically related to Joseph (being born of the Virgin Mary), this was meant to highlight Jesus' royal lineage without inheriting the curse pronounced on Jeconiah in Jeremiah 22:30.