McCarthy uses setting to create atmosphere and tension by making the house seem like a dark and foreboding place. He also uses the sound of the wind howling outside to make the reader feel as if something bad is about to happen.