Ruth is a foreigner, a widow with no money who is living with her mother-in-law, Naomi, who is also a widow without financial resources.
A kinsman, Boaz, marries Ruth. They have a child, Obed. Ruth who had refused to stay behind when Naomi had returned home now has a new home, a new husband, and a child. Naomi who had lost a husband and two sons now because of the loyalty of her daughter-in-law now is a grandmother.
Obed is the grandfather of King David. And David is the ancestor of Jesus.