A function in C is a block of code that performs a specific task. Functions help in modularizing code, making it reusable and easier to maintain. They can take parameters and return values. The `int main()` function is an example of a function in C.