What is an Application Programming Interface?

What is an API (Application Programming Interface) and which are the benefits of using it? Explained in simple terms.