Hazard Insurance question

I am buying a twonhome in San Diego.  The dwelling is covered by HOA insurance and I am getting a policy for personal property/liability.  On my loan docs I signed today there is a $900 charge for Hazard insurance.  Is this insurance to cover the lender in case the house burns down or something? 

Thanks