House Rent Allowance (HRA) is a common component of their salary structure. Although it is a part of your salary, HRA, unlike basic salary, is not fully taxable. Subject to certain conditions, a part of HRA is exempted under Section 10 (13A) of the Income-tax Act, 1961.
The amount of HRA exemption is deductible from the total income before arriving at a taxable income. This helps the employee to save tax. But do keep in mind that the HRA received from your employer, is fully taxable.
you cann't take both benefits.