A callback function is a function that is executed in response to a specific event, such as a button click or a user input.