Brook Lopez is heading to Milwaukee.

The 30-year-old center has agreed to a one-year contract with the Bucks, according to a report from ESPN. Lopez averaged 13 points and four rebounds per game for the Lakers last season. He also shot 34.5 percent from 3-point range.

Lopez, who was an All-Star in 2012-13, was originally selected by the Nets with the 10th overall pick in the 2008 draft. He spent his first nine seasons with the team before he was traded to Los Angeles for Timofey Mozgov and D’Angelo Russell in June 2017.

The Lakers tallied a 35-47 record last season but have completely rebuilt their roster this offseason.

LeBron James announced earlier this month he was leaving the Cavaliers and signing a four-year, $154 million contract with the Lakers.

Los Angeles has also re-signed Kentavious Caldwell-Pope and added Lance Stephenson, Rajon Rondo as well as JaVale McGee to its roster.

The Bucks finished 2017-18 with a 44-38 record and earned the seventh seed in the Eastern Conference playoffs. They fell to the Celtics in seven games in their opening-round series.