Cocoa was first developed as a crop in many ancient South American cultures, with the Aztecs and Mayans being the most well-known of these indigenous populations. Researchers have found evidence of cocoa-based food dating back several thousand years.
The modern word "chocolate" stems from two words in Nahuatl, the language spoken by many native groups: chocolatl, which translated literally means "hot water," and cacahuatl, which referred to a bitter beverage made with cocoa that was shared during religious ceremonies. The cacao bean was so significant to the local cultures that it was used as a currency in trade, given to warriors as a post-battle reward, and served at royal feasts.
When the Spanish Conquistadors arrived in the New World and began the process of invading, colonizing, and ultimately destroying the native cultures, they also discovered the value of the local cacao crop. However, they brought their own innovation to the appropriated drink-the addition of sugar and spices to sweeten the bitter cocoa. After that point, chocolate became wildly popular amongst the Spanish, who kept the production method a secret from other Europeans for almost 100 years after their discovery.
The exclusivity of chocolate was ultimately diminished by the onset of the Industrial Revolution, when steam-powered machines made the production of cocoa powder significantly quicker and more affordable. Solid chocolate hit the market and found wild success by 1850, due to the discovery by Joseph Fry that adding cacao butter to the cocoa powder formed a solid mass. Sixty years later, the art of creating chocolate confections with flavored filling-referred to as pralines by their Belgian inventor, Jean Neuhaus II-went public. From there, the chocolate and cocoa industry exploded in popularity and quickly spread around the world.
Throughout its centuries-long evolution, one factor has remained consistent and cocoa has attracted devotees worldwide. Today, over 4.5 million tons of cocoa beans are consumed annually around the globe, in everything from drinks to candy bars. It's safe to say that the ancient Mesoamericans who pioneered the crop could never have imagined the popularity cocoa would someday experience.
Some information has been edited out to shorten it, but all of the above was taken from the World Cocoa Foundation