Where does Chili (the word) come from?
The word chili comes from central Mexico: chīlli was the name of the hot pepper in Nahuatl, the language of the Aztecs. It reached English through Spanish in the 1600s and has nothing to do with the country Chile.
The Aztecs' word for the pepper
Nahuatl has been spoken in central Mexico since at least the 7th century. It was the language of the Mexica, the Aztecs who ruled much of the region before the Spanish conquest, and their word for the hot pepper was chīlli. By then chili peppers had long been grown there: they were cultivated in east-central Mexico some 6,000 years ago. Nahuatl is still spoken today, by about 1.7 million people, most of them in central Mexico.
Through Spanish into English
The Spanish often first heard of local plants by their Nahuatl names, and many of these passed from Spanish into other languages. Chīlli became Spanish chile. English borrowed chili from Spanish in the 1600s: Merriam-Webster's earliest record is from 1604, the Online Etymology Dictionary's from the 1640s. Chili as short for chili con carne is recorded by 1846. The 'pepper' in chili pepper has another story: Columbus's crew called the fruits pimientos, 'peppers', because they were as pungent as the unrelated black pepper.
Why people think of Chile
The country's name is a different word that only sounds the same. Spanish writers called it Chili by 1545, and in Pedro de Valdivia's letters to the Spanish king the name covers only the Aconcagua valley, a sign that it was already a local term. What it meant is unknown: suggestions include 'land's end', 'cold, winter' and a local bird, and none is proven. In the 19th century English often spelled the country Chili, which made the two easier to mix up.
Sources: etymonline.com ↗ · merriam-webster.com ↗ · en.wikipedia.org › Chili pepper ↗ · en.wikipedia.org › Nahuatl ↗