If you take out an equity loan to purchase an investment property the interest is deductible