>>17198083He was cursed by Noah for having sex with Noah's second Wife Namaah. Noah's first wife, the mother of Noah's sons had died in the 100 year period between the birth of the three sons and the flood. This can be conclusively proven by the use of the phrase "Saw his father's nakedness" - the same phrase is used in Deuteronomy to describe having sex with your father's wife - so we know that Ham's trespass was having sex with his father's wife. We know that this wife of Noah was not Ham, Shem and Japheth's mother because it would have said "Ham saw his mother's nakedness" according to the same laws in Deuteronomy.
Namaah was the last descendant of Cain, she was the sister of Tubalcain. The fact that she is Noah's second wife and offspring of the serpent seed is the whole reason she's even mentioned in the bible, where as other important women - like any daughters of Adam and Eve or even Jesus' sisters aren't even named.
Noah knew that Namaah was a descendant of Cain and thus carried the serpent seed but she was spared from the flood because she was righteous - hence the name Namaah meaning Righteous woman, whereas Canaan means wicked one. Btw she was 18' tall at the time of her death.