A Maxwell demon is a multi-component thermodynamic system where at least one subsystem takes in heat from its environment, thus appearing in isolation to locally violate the 2nd law of thermodynamics. The 2nd law is recovered by accounting for information flow between subsystems.