In Arduino programming, the millis() function is a built-in function that returns the number of milliseconds since the Arduino board began running the current program. It's often used for timing and creating time delays in Arduino sketches without blocking the rest of the code execution, which is essential for creating responsive and non-blocking programs.