Cookie-like hard wafers have existed for as long as baking is documented, in part because they deal with travel very well, but they were usually not sweet enough to be considered cookies by modern standards.[5]
Cookies appear to have their origins in 7th century AD Persia, shortly after the use of sugar became relatively common in the region.[1] They spread to Europe through the Muslim conquest of Spain. By the 14th century, they were common in all levels of society throughout Europe, from royal cuisine to street vendors.
With global travel becoming widespread at that time, cookies made a natural travel companion, a modernized equivalent of the travel cakes used throughout history. One of the most popular early cookies, which traveled especially well and became known on every continent by similar names, was the jumble, a relatively hard cookie made largely from nuts, sweetener, and water.
Cookies came to America in the early English settlement (the 17th century), although the name "koekje" arrived with the Dutch. This became Anglicized to "cookie" or cooky. Among the popular early American cookies were the macaroon, gingerbread cookies, and of course jumbles of various types.
The most common modern cookie, given its style by the creaming of butter and sugar, was not common until the 18th century.[6]