What does Genesis 38:8 mean?
Then Judah told Onan, 'Sleep with your brother’s widow and have a child with her, so your brother’s family line can continue.' Genesis 38:8 - Modern Text Bible
(This was a common practice to make sure a dead brother’s name and inheritance continued.)