A closure is when a function is able to remember and access a lexical scope, even when the function is executed outside the lexical scope.