When you are in default on your mortgage, a Notice of Lis Pendens is usually filed by the bank or mortgage lender that is holding your mortgage. The Notice is filed in the county court in which your home is located and is the start of the foreclosure process.
Once started, nothing will stop the foreclosure process. There are actions that can be taken that can temporarily suspend the process such as bankruptcy. In addition, you can market your home for sale and hope to sell it before sheriff's sale.
You should speak with your attorney to see what actions are available and that you can take to slow up the foreclosure process.