Like Ruth, Tamar was a foreigner. She became the mother of Perez and Zerah, who were ancestors of Judah's descendants.