Overview
In the Book of Genesis, Tamar was the daughter-in-law of Judah (twice), as well as the mother of two of his children: the twins Perez and Zerah.
Genesis narrative
In , Tamar is first described as marrying Judah's eldest son, Er. Because of his wickedness, Er was killed by God. By way of a levirate union, Judah asked his second son, Onan, to provide offspring for Tamar so that the family line might continue. This could have substantial economic repercussions, with any son born deemed the heir of the deceased Er, and able to claim the firstborn's double share of inheritance. However, if Er was childless, Onan would inherit as the oldest surviving son.
Onan performed coitus interruptus. His action displeased God and so, like his older brother, God killed him. At this point, Judah is portrayed as viewing Tamar to be cursed and therefore as being reluctant to give her his remaining and youngest son Shelah. Rather, he tells Tamar to wait for Shelah. However, even after Shelah has grown up, Judah still does not give Tamar to him in marriage.
Judah and Tamar
From Wikipedia (CC BY-SA 4.0).