GM is going green in a big way, committing to using 100 percent renewable energy by 2050.

The automaker has pledged to source global electricity from wind, sun and landfill gas so that its 350 operations in 59 countries will run on 100-percent renewable energy. GM also announced that it is joining RE100, a global collaborative initiative of businesses committed to 100-percent renewable electricity.

The company revealed that last year it used 9 terawatt hours of electricity to build its vehicles and power its offices, technical centers and warehouses around the world. In order to meet its renewable energy goal, it will continue to improve the energy efficiency of its operations while transitioning to clean sources for its power needs.

In the short term, GM is focusing on its previous goal of using 125 megawatts of renewable energy by 2020. It expects to exceed that figure when two new wind projects come online later this year that will help power manufacturing operations. In China, GM is in the process of adding 30 megawatts of solar arrays to two facilities, with the Jinqiao Cadillac assembly plant in Shanghai featuring 10 megawatts of rooftop solar and 20 megawatts of solar carports.

"Establishing a 100 percent renewable energy goal helps us better serve society by reducing environmental impact," said GM Chairman and CEO Mary Barra. "This pursuit of renewable energy benefits our customers and communities through cleaner air while strengthening our business through lower and more stable energy costs."