NEW YORK (AP) -- Bradley Beal's driving layup with 6 seconds remaining lifted the Wizards to a 102-101 win over the New York Knicks on Monday night that snapped Washington's 10-game losing streak at Madison Square Garden.
The Knicks didn't use one of their three remaining timeouts after Beal's basket. Carmelo Anthony took the inbounds pass, dribbled the up court and attempted a 3-pointer that bounced off the rim as time expired.
Beal led the Wizards with 21 points, including their final seven as Washington erased a six-point fourth-quarter deficit.
Martell Webster added 30 points and John Wall 20 points for the Wizards.
Anthony finished with 32 for the Knicks.
The Knicks led 100-97 after Andrea Bargnani hit two free throws with 1:07 left. But, Beal hit a 3-pointer to tie the game with 45 seconds to go.
Beno Udrih put the Knicks back in front by making one of two free throws with 24 seconds left.
Then after a Wizards' timeout, Beal ran down the clock before driving past Udrih and hitting the winning shot.
The Wizards led 53-42 at halftime and increased their lead to 59-44 on Trevor Ariza's short jumper with 9:12 left in the third quarter.
The Knicks then went on a 12-0 run, highlighted by consecutive 3-pointers by J.R. Smith and capped by an Anthony's layup.
The Knicks went ahead 66-64 on Anthony's jumper with 3:06 left in the third quarter and increased it to 77-71 on another jumper by Anthony jumper with 33 seconds left before settling for a 77-75 lead after three quarters.
Smith finished with 18 points, Bargnani had 13 and Udrih 12.
NOTES: The last Washington win at MSG was on Dec. 6, 2006. Knicks are 12-3 in their last 15 games against the Wizards. ... The two head coaches, Randy Wittman and Mike Woodson, were teammates at Indiana University in 1979-80. ... Pablo Prigioni was taken out of the game with 9:49 left in the third quarter with a hairline fracture of his right toe. He was replaced by Udrih.