Functions are blocks of reusable code that perform specific tasks and can accept parameters and return values.