What is an API? What's the easiest way to explain its main function?

What is an API? What's the easiest way to explain its main function?