What is the difference between life insurance and non life insurance?

Life insurance pays a death benefit when the insured party dies. So, it is insurance on someone's life.

Non Life Insurance (such as home, auto, general liability) insurance covers something else other than a person's life.