In the story, Wilbur the pig is saved from being slaughtered by a little girl named Fern, who convinces her father to let her raise him. Later, Wilbur's life is saved again by a clever spider named Charlotte who writes messages about him in her web, making him famous and valuable.