Onan was the second son of Judah. Required to impregnate his deceased brother's wife so his brother's line would not die out, Onan instead enjoyed sexual union with her but chose to make sure impregnation would not take place. Because of his actions, he was slain by God. (Genesis 38:10-11)