All-Star guard Bradley Beal has agreed to a five-year, $251 million maximum contract to stay with the Washington Wizards, his agent Mark Bartelstein of Priority Sports told ESPN’s Adrian Wojnarowski as NBA free agency opened Thursday.

Beal, who has played his entire 10-year career with the Wizards, has now committed himself to the franchise for the duration of his prime.

Beal, who turned 29 earlier this week, averaged 23.2 points, 4.7 rebounds and 6.6 assists in 40 games for Washington last season before undergoing season-ending wrist surgery in February. That was preceded by two seasons in which Beal averaged at least 30 points per game — including 31.3 points per game across 60 games during the 2020-21 season.

The No. 3 pick in the 2012 NBA draft, Beal is in the top five in a host of all-time statistical categories for the Wizards — including making, and attempting, the most 3-pointers in team history. Now, he’ll get a chance to take aim at virtually every statistical mark the franchise has to offer.

Washington hopes those milestones will be accompanied by victories. The Wizards, after making the Eastern Conference semifinals three out of four years earlier in Beal’s career, have reached the postseason just once in the past four years, when Washington exited in five games against the Philadelphia 76ers in the first round of the 2021 NBA playoffs.

Last year, with Beal sidelined for half the season, the Wizards finished in 12th place in the East — a distant eight games out of the 10th and final play-in tournament spot.

Now, Washington will wait and see what Beal looks like alongside the team’s marquee midseason addition: center Kristaps Porzingis, who has yet to play a game with Beal after being acquired in a deal with the Dallas Mavericks.

The Wizards, under second-year coach Wes Unseld Jr. and team president of basketball operations Tommy Sheppard, added to the roster earlier this week by sending out guards Ish Smith and Kentavious Caldwell-Pope in exchange for guards Monte Morris and Will Barton, with Morris set to take over as the team’s starting point guard alongside Beal in Washington’s backcourt.

Washington also picked up free agent Delon Wright, agreeing to a two-year, $16 million deal with the former Hawks guard, his agent Greg Lawrence of Wasserman Basketball told Wojnarowski on Thursday.

Wright, 30, scored at a career-low-rate last season on an Atlanta Hawks team that had a lot of mouths to feed on offense. However, his efficiency (45% from the field, 38% from 3) and passing (nearly 5 assists per 36 minutes) looked as strong as ever.

At 6-foot-5, Wright combines a useful set of skills that include ballhandling, passing, defense and shooting. He saw his minutes increase to 27 minutes per game in Atlanta’s first-round series against the Miami Heat, where he averaged 8.2 points and 2.8 assists while shooting over 50% from the field and 38% from 3.

Washington has several young players who could play a role as well, including the team’s past four first-round picks: guard Johnny Davis, the 10th pick in this year’s draft, and forwards Corey Kispert, Rui Hachimura and Deni Avdija.

The Wizards also agreed to a two-year deal with Anthony Gill, sources told Wojnarowski. He spent the last two seasons in Washington, averaging 3.7 points in 9.7 minutes.