If you have a second mortgage or secured loan (HEL or HELOC), your lender may require you pay it off before applying for mortgage refinancing.
If you have enough equity in your home, consider refinancing that consolidates both the first mortgage and second mortgage into one mortgage.