Gharar (غرر) means excessive uncertainty or ambiguity in a deal, where one side cannot know what they are getting. Minor uncertainty is tolerated, but excessive gharar makes a contract invalid.
It is one of the main reasons scholars debate conventional insurance, options and some forms of trading. See Is insurance halal?
Gharar means excessive uncertainty or risk in a contract, where an important detail such as the price, the goods or the delivery is unclear. The Prophet ﷺ forbade sales involving gharar, as recorded in Sahih Muslim.
Scholars apply the idea to gambling and to conventional insurance, where the outcome and the amounts depend on chance. Takaful, a cooperative form of cover, is offered as an alternative. A small amount of uncertainty that people accept in daily trade is not treated as gharar.
Gharar is different from ordinary business risk. A shop that buys stock hoping to sell it takes normal risk, while selling goods that may not exist is gharar.