A stop-loss is a pre-planned exit order that closes a trade once price reaches a set level, capping the loss.
It turns an intended risk into an actual one and gives a position a known maximum loss before you enter. A stop is an instruction to exit, not a guarantee of price: in fast or gapping markets the fill can be worse than the stop level.