Unlike driving a car, you can legally own a home and not carry homeowners insurance.
However, if you have a mortgage, banks will often request that you have insurance. It is highly recommended that regardless of your situation, you have homeowners insurance so that you protect your assets in case of a catastrophic loss.