The University of California announced Tuesday that it will use 100 percent clean electricity by 2025.

All 10 UC campuses and five medical centers have committed to using solely zero-carbon and renewably generated electricity within a decade, according to a CALPIRG Students press release.

Student public interest research groups have worked on more than 65 college campuses in 19 states to encourage universities to transition to 100 percent renewable energy generation, according to the press release. Some universities, including Boston University, Cornell University and Colorado State University have made similar 100 percent renewable energy pledges.

The California Public Interest Research Group, which includes CALPIRG at UCLA, collected thousands of student petitions in support of this commitment. They also hosted lobby days at the state Capitol in which hundreds of students expressed their support for environmental policy reform.

David Phillips, the UC’s associate vice president for energy and sustainability, said in the press release that student advocacy encouraged the administration to commit to 100 percent clean energy.

“Our students have been great partners, and their leadership has encouraged us to take a major step by committing to buy 100 percent clean electricity by 2025,” Phillips said.

This pledge comes one week after the California State Assembly passed Senate Bill 100, which, if signed into law by Gov. Jerry Brown, will ensure 100 percent renewable energy generation in the state by 2045.