A callback function is a function passed into another function as an argument, which is then invoked inside the outer function to complete some kind of routine or action. This allows for asynchronous operations and is a fundamental concept in event-driven programming, enabling a non-blocking execution pattern.