When to use live in or live at or live on in a sentence?

The rules for when to use 'live in', 'live at' and 'live on' follow from more general rules about when to use 'in', 'at' and 'on'.

Use 'in' when the place is thought of as a containing area rather than as a point: An enclosed space:
* "He lives in a house/a cave/a hole." An area as opposed to a point in space:
* "He lives in this town/city/state/province/country/area/region/galaxy." A time period as opposed to a point in time:
* "He lived in the seventeenth century."
=== === === === Use 'at' when the place is thought of as a point along a path rather than as an area:

A point along a road: * "The US president lives at number 1600 Pennsylvania Avenue in Washington, DC." A point in time:
* "He lived at the end of the seventeenth century."
Use 'on' when the place is thought of as a surface that the thing is in contact with:
* "We live on Earth." * "There are some goats living on the mountain." * "There are spiders living on the ceiling."
Sometimes, you can use more than one preposition depending on whether you wish to speak about areas, points or surfaces:
* "He lives on Pennsylvania Avenue." (understood as a surface) * "He lives in Pennsylvania Avenue." (understood as an area)