A trailing stop moves automatically as the price moves in your favour, but stays put when the price moves against you. It locks in more profit as a trade runs while still capping the downside.
For example, a trailing stop 20 pips behind price will rise with a long position but never fall. When price finally reverses by the trailing distance, the trade closes.