What a fireplace damper do?

When the fireplace is not in use, it allows the opening to the chimney to be closed. This can help keep heat in the house, and birds and squirrels out.