What were the Advantage of living dwellings built into the side of cliffs?

The two advantages of living in dwelling built into the side of cliffs were at it was easy to defend and offered protection from winter weather.