In the Book of Genesis, Tamar (/ˈteɪmər/; Hebrew: תָּמָר, Modern Tamar, Tiberian Tāmār; date palm, pronounced [ˈtamar]) was the daughter-in-law of Judah (twice), as well as the mother of two of his children: the twins Perez and Zerah.
In Genesis chapter 38, 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. Tikva Frymer-Kensky explains that 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 actions were deemed wicked by God and so, like his older brother, he died prematurely. 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. (Genesis 38:6–14)