After the Flood, Noah became a farmer and planted a vineyard. One day he became drunk on some wine he had made and lay naked in his tent. Ham, the father of Canaan, saw that his father was naked and went outside and told his brothers. Shem and Japheth took a robe, held it over their shoulders, walked backward into the tent, and covered their fathers naked body. As they did this, they looked the other way so they wouldnt see him naked. When Noah woke up from his drunken stupor, he learned what Ham, his youngest son, had done. Then he cursed the descendants of Canaan, the son of Ham:
A curse on the Canaanites! May they be the lowest of servants to the descendants of Shem and Japheth. Then Noah said, May Shem be blessed by the Lord my God; and may Canaan be his servant. May God enlarge the territory of Japheth, and may he share the prosperity of Shem; and let Canaan be his servant. Genesis 9:18-27