Rosemary's name is rooted in legend. The story goes that during her flight from Egypt, the Virgin Mary draped her blue cloak on a Rosemary bush. She then laid a white flower on top of the cloak. That night, the flower turned blue and the bush was thereafter known as the "rose of Mary". Greeks, who wove Rosemary wreaths into their hair, believed Rosemary strengthened the brain and enhanced memory. It was also known as a symbol of fidelity. In the Middle Ages, Rosemary was used medicinally and as a condiment for salted meats. In Europe, wedding parties burned Rosemary as incense. Judges burned it to protect against illness brought in by prisoners.