Rags to Riches stories have a poor and unhappy hero facing incredible challenges. They gain something, lose it, and then gain it back after overcoming great odds.

Cinderella
Cinderella is probably the best known fairy tale and a great example of a Rags to Riches story.