A futures contract is a standardized legal agreement to buy or sell a specific commodity or financial instrument at a predetermined price at a specified time in the future. These contracts are primarily used for hedging risk and speculation in financial markets, allowing parties to lock in prices and manage exposure to price fluctuations.