Fairy tales have common elements such as an imaginary setting, good and bad characters that may be royal or magical, and magical events. Stories often begin with phrases like "once upon a time" and include problems that are solved by the end, sometimes with a lesson learned. Fairy tales usually have a pleasing or happy ending.