What is the difference between residential and non-residential property?

I'm really confused about what makes a property residential versus being categorized under any other category.