Commodities are basic goods that are interchangeable with other goods of the same type and can be used as inputs in the production of other goods or services. They play a crucial role in perfect competition, where products are standardized and no single seller can influence the market price due to the uniformity of the goods offered.