Macbeth's porter scene functions as a comic relief after King Duncan is killed. The troll-like gatekeeper makes the audience or reader laugh with his drunken banter, and relieves the tension of the killing in the prior scene. He casts light on Macbeth's internal torment.