On Thursday afternoon, Tesla announced that its investors and SolarCity investors agreed to a $2.6 billion all-stock merger of the two companies. The decision passed with an 85 percent vote of approval.

SolarCity shareholders will receive 0.11 Tesla shares for every share of SolarCity stock they own.

The deal had been a topic of some controversy since Tesla announced the proposed in June. Investors were suspicious of Tesla adding more debt to its books and were uncertain why Tesla had to buy SolarCity. Tesla CEO Elon Musk spent the interim months convincing shareholders that the deal would be mutually beneficial and would create “cost synergies” for both companies—SolarCity panels would be able to be sold alongside Powerwall stationary storage batteries and Tesla vehicles at the same storefront, for example.

Tesla went even further to sweeten the deal, though. In October, Tesla announced that Panasonic, a partner with Tesla in the building of the Gigafactory, would join in to help SolarCity optimize its Buffalo, NY solar panel factory and confer some of its expertise in building photovoltaic cells. However, that assistance was contingent on Tesla and SolarCity merging.

From there, Tesla held a grandiose event in Los Angeles to show off solar roofing tiles. The unveiling differed from the unveiling of the Powerwall and Powerpack a year earlier in that, with the Powerwall announcement, Tesla had been building stationary batteries for months before they decided to make stationary batteries an official business segment. Tesla’s announcement of the solar tiles was much more vague. In a press conference later that evening, Musk essentially said the solar tiles were DOA unless the SolarCity merger was approved. He claimed any looser collaboration with SolarCity would be unwieldy.

Now, however, Tesla and SolarCity have only to contend with market demand. The Wall Street Journal wrote this morning that a slashing of federal tax credits for electric vehicles and solar panels could occur under a Trump Administration, effectively slowing demand. But Musk has expressed confidence that efficiencies within Tesla will continue to bring prices down, making his cars (especially the anticipated Model 3) attractive. Solar panel cost has also been plummeting, and that is expected to continue.

“We would like to thank our shareholders for continuing to support our vision for the future,” Tesla said in a press statement. “We look forward to showing the world what Tesla and SolarCity can achieve together.”