If your tenant is a company or self-employed, you must invoice with VAT at 21% and present the VAT tax quarterly. And in the income tax return, in the IRPF you must pay the percentage from 19% to 47% according to your total income, although if your tenant is rented as usual residence you have a bonus of 60%.