A stop-loss order automatically closes a trade when it reaches a specified loss level, preventing further losses and protecting your investment.