Tesla is buying SolarCity for $2.6 billion (TSLA)

Elon Musk
Elon Musk

AP Photo/Jack Plunkett

SolarCity, a maker of solar panels, has agreed to a merger with the electric-car maker Tesla, according to a post on SolarCity's official blog.

Tesla made an all-stock offer for SolarCity on June 21. According to the post, the enterprise value of the deal will be $2.6 billion.

The deal combines two of entrepreneur Elon Musk's public firms to create what the SolarCity post called "the world's only vertically integrated sustainable energy company."

"Now is the right time to bring our two companies together: Tesla is getting ready to scale our Powerwall and Powerpack stationary storage products and SolarCity is getting ready to offer next-generation differentiated solar solutions," the post from SolarCity said.

"By joining forces, we can operate more efficiently and fully integrate our products, while providing customers with an aesthetically beautiful and simple one-stop solar + storage experience: one installation, one service contract, one phone app."

According to the post, SolarCity has a 45-day period, which will end September 14, to solicit counteroffers.

NOW WATCH: Elon Musk just unveiled Tesla's 'top secret' master plan — here are the details