Another way to say "a castle is used for living in " is "Some castles are homes for people."