A stop-loss is an instruction to sell automatically if the price falls to a level you choose, so that a losing trade is closed before the loss grows.
You set a trigger price below the current market price. When the market touches that price, the exchange places a sell order for you, either at the market price or at a limit price you specified. It lets you decide the maximum loss you will accept before entering a trade, instead of deciding under pressure while the price is falling. Traders often place the stop a little below a support level or a set percentage under their buying price. A stop that is too close gets triggered by normal price swings, and one that is too far protects very little.