Commodities are interchangeable raw materials that markets price as a class of investable assets. They fall into three broad groups: energy (crude oil, natural gas, gasoline), metals (industrial metals such as copper and aluminum, and precious metals such as gold and silver), and agriculture (grains, livestock, and "softs" such as coffee, sugar, and cotton). A barrel of a given grade of oil is a barrel of that oil regardless of who produced it, and that fungibility is what lets commodities trade on standardized exchanges.
As an investment, a commodity is fundamentally different from a stock or a bond, because it generates no cash flow. A share can pay a dividend and a bond pays interest, but a commodity just sits there. The whole return, positive or negative, is the change in its price, minus whatever it costs to store, insure, or maintain exposure. That single fact drives most of what is distinctive about investing in the class.