a nun at the santa rosa convent in puebla is said to have invented the recipe in the 17th century, when she heard of the impending visit of juan de palafox, viceroy of new spain and archbishop of puebla. to honour her guest, she emptied the larder, mixing indigenous ingredients (chilli peppers, tomatoes, cocoa, etc.)