The purpose of a buy to close transaction is to close out any short option position that required you to sell to open in order to initiate the trade. In this way, the process is similar to short selling stock. You initiate a trade by selling something first (and receiving cash) and then later you close the trade by buying it back.
To illustrate, please see the three examples below.
Here are three quick examples:
If, however, you anticipate that the put will retain value at expiration (i.e. the stock will trade below the strike price), and if you're unwilling to allow the put to be exercised against you, then you will have to buy to close in order to close out the transaction.
If it looks like the stock will close below the strike price of the short put (the one you sold to open) then you will most likely want to close the entire bull put spread. And you do that by simply reversing the action of the initial trades. The put you sold to open must be bought back to close, and the second put which you purchased (buy to open) at the lower strike price must be sold to close.
BP - 100 shares
KO - 100 shares
MCD - 30 shares
JNJ - 25 shares
GIS - 25 shares
PAYX - 25 shares
Open Market Purchase Price: $15,080.18
Less Booked Option Income: $9386.14
Tot. Discount: 62.24%
Adj. Div. Yield: 11.08%