California just took another step towards going green.

Starting on Jan. 1, 2020, most new homes in the state will be required to have solar panels installed. California is the first U.S. state to require homes to have solar panels. 

After a tumultuous start to the year—with hefty tariffs placed on solar panels—the news of the new regulation has sent solar stocks soaring. Some of the top solar panel companies, which include First Solar Inc. (FSLR) , Sunrun Inc. (RUN) , SolarEdge Technologies Inc. (SEDG) , Sunpower Inc. (SPWR) , and Vivint Solar Inc. (VSLR) , saw their stocks rise in Thursday. Tesla Inc. (TSLA) , which also produces solar panels via its SolarCity subsidiary, was up 1% on Thursday.

Sunrun, the largest U.S. solar installer, has seen the highest gains so far, over 7% in trading on Thursday morning. 

More from Markets

A Hungry Grizzly Bear Is Stalking the Stock Market

A Hungry Grizzly Bear Is Stalking the Stock Market

Tesla Has Lost 15% Since Musk's Take-Private Tweet

Tesla Has Lost 15% Since Musk's Take-Private Tweet

Why Most Americans Like a Volatile Stock Market: Study

Why Most Americans Like a Volatile Stock Market: Study

Should Retirees Invest in the Tech Sector?

Should Retirees Invest in the Tech Sector?

Here's How to Trade Walmart, Nordstrom, Macy's and J.C. Penney After Earnings

Here's How to Trade Walmart, Nordstrom, Macy's and J.C. Penney After Earnings