This document is a regulatory analysis project for the integration of distributed generation and demand-side participation in Spain. It was completed by Breogán Pardo Álvarez for the Pontifical University of Comillas under the direction of David Trebolle Trebolle in May 2013. The project analyzes the regulatory challenges to integrating distributed energy resources like distributed generation, demand response, electric vehicles, and energy storage onto Spain's electric grid. It discusses how the current regulatory framework in Spain provides incentives for renewable distributed generation but makes integrated planning and operation of the grid more difficult for distribution system operators. The project concludes that Spain needs to move from a "fit and forget" connection approach for distributed generation to more active management that considers the