The princess is under a magic sleeping spell that can only be broken if the prince writes his name on a magic tablet.