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

Johnson & Johnson Bumps Full-Year Earnings Guidance Higher After Solid Q3

Johnson & Johnson Bumps Full-Year Earnings Guidance Higher After Solid Q3

Dow Surges as Strong Earnings Push the Blue-Chip Index Higher

Dow Surges as Strong Earnings Push the Blue-Chip Index Higher

Walmart Trims 2019 Earnings Guidance After $16 Billion Flipkart Deal

Walmart Trims 2019 Earnings Guidance After $16 Billion Flipkart Deal

How to Be a Tactical Investor in the Current Market

How to Be a Tactical Investor in the Current Market

Morgan Stanley Profit Surges 19% on Tax Cuts, Trading Fee Increase

Morgan Stanley Profit Surges 19% on Tax Cuts, Trading Fee Increase