In Genesis, Ham saw his father Noah uncovered after the Flood.
Genesis 9:20–27 describes Noah becoming drunk from wine and lying uncovered in his tent. Ham, identified as Noah's son, saw his father and told his two brothers. Shem and Japheth then walked backward into the tent and covered Noah without looking at him.
When Noah awoke, he pronounced a curse on Canaan, Ham's son, and blessings involving Shem and Japheth. The passage therefore names Ham as the son who saw Noah, but the curse is directed at Canaan. That distinction is important and is often blurred in simplified retellings.
Later interpreters developed the “Curse of Ham” into influential but abusive racial theories. Those theories are not a license for racial hierarchy and do not follow from the text's naming of Ham. The story's genealogy and family relationships are separate from later historical uses of the passage.