Onan was a figure detailed in the Book of Genesis chapter 38, as the second son of Judah who married the daughter of Shuah the Canaanite. Onan had an older brother Er and a younger brother, Shelah as well.