A virtual power plant (VPP) aggregates distributed energy resources like solar, wind, storage and flexible loads to act as a single controlled generation source. It allows these distributed resources to participate in electricity markets and provide grid services like peak shaving and frequency regulation. A VPP has three main components - distributed energy resources, energy storage systems, and communication technology. It uses optimization algorithms to coordinate these resources and provide benefits like improved reliability and cost efficiencies.