What are hangars commonly used for?

Hangars are typically used for storing aircraft or spacecraft in protective storage. Hangars can be used to protect aircraft or spacecraft from weather conditions and direct sunlight.