Should I Pay Off My Home Instead Of Continuing To Lose It In Stock Market?

I have investments in the stock market in mutal funds that keep loosing money no matter what fund I move it too. Should I just pay off my home before the stock market takes it all?