A stop-loss is an order that closes your trade automatically if the price moves against you to a level you choose. It caps how much a single trade can lose.
For a buy trade the stop sits below the entry price; for a sell trade it sits above. When the market reaches that level, the stop becomes a market order and closes at the next available price.
Where to place it
Good stops sit where the trade idea is proven wrong, for example beyond a recent swing high or low, not at a round number of pips picked for comfort. Once the stop is set, the lot size should be worked out so that hitting it costs only your planned risk.
Slippage and gaps
A standard stop does not guarantee the exact price. In fast markets or over a weekend gap, it can fill worse than planned. Some brokers offer guaranteed stops for a fee. Moving a stop further away to "give the trade room" after entry is one of the most common and costly habits in trading.