To close out a relatively complicated investment position. For example, an investor who practices arbitrage by taking one position in stocks and the opposite position in option contracts would have to unwind by the date on which the options would expire.
To rectify a transaction in which a mistake has been made. For example, because of a misunderstanding, a brokerage firm may have bought the wrong stock for a customer. The firm must then unwind the erroneous trade by selling the stock just purchased and buying the correct stock.