In Genesis, Ham is named as the father of Canaan after the Ark story.
Genesis 9:18 identifies Noah's sons as Shem, Ham, and Japheth, and specifically says that Ham was the father of Canaan. The statement appears in the episode following Noah's planting of a vineyard and an incident involving Noah's nakedness, which leads to a curse directed at Canaan.
The passage has been misused historically to justify racism and slavery, especially through the false idea of a “curse of Ham.” The biblical text names Canaan, not all people later associated with Ham, and it does not provide a racial theory. The genealogy is a narrative detail about Noah's family and the peoples described in Genesis.