In 2005, Spain became the first country in the world to require the installation of photovoltaic electricity generation in new buildings, and the second (after Israel) to require the installation of solar water heating systems in 2006.