An API gateway acts as a single entry point for client applications to access multiple microservices, providing authentication, routing, and protocol translation.