In programming, a function definition is a block of code that specifies the operations performed when the function is called or executed. It typically includes the function name, parameters, and body, which together dictate the behavior and scope of the function.