No, it is not illegal to not have landlord insurance. However, while it isn’t a legal requirement, landlord insurance is popular as it protects those renting to tenants if the worst happens.   

Standard home insurance is unlikely to cover any of the specific risks facing landlords or the building when the homeowner isn’t present, so home insurance policies specially tailored to landlords provide peace of mind against risks like damage, theft and unpaid rent.