Onan is the second son of Judah. Required by levirate law to produce an heir for his dead brother Er through Tamar, he refused and “what he did was wicked in the LORD’s sight; so the LORD put him to death also” (Gen 38:9-10).