A shelter is a place where someone or something is put in or goes to be kept safe or hidden. It can also be any place where people live that "shelters" (protects) them from any danger such as the weather.
There are different kinds of shelters and they are for used for different reasons.