In 2005, Spain became the world's first country 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.