Where do Macarons originate from?

The Macaron originates from France and is generally thought to have been created by an Italian chef of Catherine de Medici when she was the Queen of France during the 16th century. However the time period and original creator maybe a legend as there are documents referring to the Macaron in the 8th century from Cormery Abbey in France.