The thief stole the Queen of Hearts' tarts in the nursery rhyme "The Queen of Hearts." The Queen got angry and ordered the Knave of Hearts to bring them back, leading to a trial where the Knave was accused of stealing. The rhyme ends with the Knave being pardoned by the King and Queen.