D-WILL WILL: Superstar point guard Deron Williams ended the speculation last night, agreeing to re-sign with the Brooklyn-bound Nets for five years and $100 million. Photo: Getty Images

After months of intrigue about his future, Deron Williams took to Twitter to announce where he will be playing next season.

“Made a very tough decision today….” Williams wrote, including a photo of the new Brooklyn Nets logo.

Suddenly, the Nets will enter Brooklyn relevant both in New York and in the Eastern Conference.

The superstar point guard’s decision to re-sign with the Nets Tuesday for a five-year contract for roughly $100 million, the maximum salary allowed under the salary cap, ensures Williams will be the unquestioned face of the franchise as it transitions to Brooklyn this fall.

The Nets, who were able to offer an extra year and over $25 million in salary more than any other team, only ever had serious competition from one other team: Williams’ hometown Dallas Mavericks. Both teams met with Williams in the New York metropolitan area Monday before the Nets won out.

Nets general manager Billy King took a huge risk when — after failing to land Carmelo Anthony — he acquired Williams from the Jazz in February 2011 for Derrick Favors, Devin Harris and two additional lottery picks, even though Williams could test free agency this summer without ever playing a game in the team’s new Brooklyn home. But that risk paid off, when Williams committed to the franchise for the foreseeable future.

Once the deal becomes official on July 11, when the league’s moratorium on signing free agents ends, the Nets will have one of the league’s elite players — and arguably its best point guard — locked in for the next five years as they continue to assemble a roster that should place the franchise in the upper echelon of the Eastern Conference.

Since free agency began at 12:01 Sunday morning, King has been busy making moves — and spending Russian billionaire owner Mikhail Prokhorov’s money — to convince Williams his future belongs in Brooklyn. In the opening hours of free agency, the Nets came to an agreement with forward Gerald Wallace, whom they acquired at the trade deadline in March, on a four-year, $40 million deal.

They then agreed to a trade with the Hawks on Monday afternoon for six-time All-Star guard Joe Johnson, agreeing to send the expiring contracts of Anthony Morrow, Jordan Farmar, Johan Petro and Jordan Williams, a signed-and-traded DeShawn Stevenson and Houston’s lottery-protected first-rounder in next year’s draft to take on the four years and nearly $90 million remaining on Johnson’s contract.

But both moves pale in comparison to the importance of re-signing Williams, who gives the franchise a true superstar to market going into the brand new Barclays Center and a premier floor general to try to lead them back into the playoffs for the first time since Jason Kidd was still on the roster back in 2006-07.

Williams averaged 21.0 points and 8.7 assists last season for the Nets, the only player in the NBA in the top 10 in scoring and assists. The 28-year-old, whose birthday was last week and who is set to play on the U.S. Olympic team for the second time later this summer, has career averages of 17.6 points, 9.2 assists and 3.3 rebounds.

With Williams re-signed, the Nets now have arguably the NBA’s best backcourt in Williams and Johnson, with Wallace slotting in at small forward. The fourth starting spot could be filled by Bosnian power forward Mirza Teletovic, who agreed to a three-year deal with the Nets for the full mid-level exception, worth $15.7 million. The Nets acquired former Clippers power forward Reggie Evans in a sign-and-trade yesterday — inking him to a three-year deal worth $5 million — to serve as a veteran backup at the position.

In addition, the Nets have made it clear since long before free agency began that they will match any offer for restricted free agent center Brook Lopez. They also could still re-sign or sign-and-trade both Kris Humphries and Gerald Green, as well as use the $1.9 million bi-annual exception as they go about filling out their roster.

They still could even make a run at Magic star center Dwight Howard, whom they have long hoped to pair with Williams.

But the key to it all was securing Williams’ signature, ensuring the franchise would be led into its new city and new home by one of the game’s elite talents.