To qualify for the mortgage interest deduction, the loan must be for either your first or second home. That means you can’t deduct the mortgage interest on a third or fourth home.
Your name must be on the property to qualify for the mortgage interest deduction.
Loans that are not secured by your home are usually considered to be personal loans and the interest is not tax deductible.
Click this link for more info on Deducting Mortgage Interest.