The Knicks filled one of their biggest remaining needs Tuesday when they agreed to a one-year deal with free agent Ronnie Brewer.

The deal, which was first reported by NBA.com, gives the Knicks a second veteran shooting guard to pair with J.R. Smith, one position the Knicks were lacking depth with Iman Shumpert out until midseason after undergoing knee surgery.

“New York Knicks lets get it!!!” Brewer tweeted Tuesday afternoon.

Brewer, a six-year veteran guard, averaged 6.9 points, 3.5 rebounds and 2.1 assists for the Bulls last season, where he started 43 games and averaged just under 25 minutes. While he’s not much of an offensive threat, Brewer could be a better fit in the Knicks starting lineup than Smith thanks to his defensive ability.

That also would allow Smith to provide some scoring off the bench in a sixth man role, as he did after he signed with the Knicks last season after a stint in China.