Opportunity cost is a decision criterion for mutually exclusive alternatives. In economics, it is equal to the value of the best alternative. This means that a decision must be taken if the resulting benefit is higher than its opportunity cost, otherwise the alternative would be a better choice.
For example, if a farmer has to decide whether to sow wheat or corn, the opportunity cost of wheat would be the profit generated by sowing corn. In this case, the farmer should sow wheat only if the profit generated by this decision exceeds the opportunity cost. If it does not, then he should sow corn.
The opportunity cost can be different from the monetary cost. For example, if I buy a new pair of shoes, the monetary cost is what I paid for them. The opportunity cost is the value (in terms of satisfaction) of the next best thing I could have bought with that money.