A stop order is an order to buy or sell a security once the price reaches a specified level, known as the stop price, to limit an investor's loss or lock in a profit. It becomes a market order when the stop price is reached, ensuring execution but not guaranteeing the price at which the order will be filled.