You can claim a deduction for interest you paid to anyone but the person who received the interest needs to pay taxes on the interest received. You can ask your relative to issue you a 1098 for the mortgage interest that you paid and then they can enter it on their taxes as income as well.