The three little pigs built houses of different materials - straw, sticks, and bricks - to avoid being eaten by the wolf. The wolf blew down the houses of straw and sticks, but could not blow down the brick house. Later, the wolf tricked the pig in the brick house by pretending to be his friend and inviting him to the fair. When the pig went to the fair, the wolf tried to enter his house but the pig escaped in a butter churn. Finally, the wolf threatened to enter the pig's chimney but the pig had prepared a pot of boiling water, outwitting the wolf again.