A building is a structure that people live or work in, or that is erected to protect articles or livestock, or for religious, social, military, industrial, or scientific purposes. Examples include churches (religious), town halls (social), barracks (military), factories, lumber mills (industrial), observatories, and physics labs (scientific).