An action refers to an operation performed by a program, often changing the state or causing an effect, while a function is a defined segment of code designed to perform a specific task, which may or may not involve actions.