Underwater habitats are underwater structures in which people can live for extended periods and carry out most of the basic human functions of a 24-hour day, such as working, resting, eating, attending to personal hygiene, and sleeping. In this context 'habitat' is generally used in a narrow sense to mean the interior and immediate exterior of the structure and its fixtures, but not its surrounding marine environment. Most early underwater habitats lacked regenerative systems for air, water, food, electricity, and other resources. However, recently some new underwater habitats allow for these resources to be delivered using pipes, or generated within the habitat, rather than manually delivered.An underwater habitat has to meet the needs of human physiology and provide suitable environmental conditions, and the one which is most critical is breathing air of suitable quality. Others concern the physical environment (pressure, temperature, light, humidity), the chemical environment (drinking water, food, waste products, toxins) and the biological environment (hazardous sea creatures, microorganisms, fungi). Much of the science covering underwater habitats and their technology designed to meet human requirements is shared with diving, diving bells, submersible vehicles and submarines, and spacecraft.Numerous underwater habitats have been designed, built and used around the world since the early 1960s, either by private individuals or by government agencies. They have been used almost exclusively for research and exploration, but in recent years at least one underwater habitat has been provided for recreation and tourism. Research has been devoted particularly to the physiological processes and limits of breathing gases under pressure, for aquanaut and astronaut training, as well as for research on marine ecosystems.