P.J. Washington Jr. sank two free throws with 2.5 seconds remaining and the Dallas Mavericks rallied for a 117-116 victory over the top-seeded Oklahoma City Thunder on Saturday to reach the Western Conference finals for the second time in three seasons.

With the Thunder ahead 116-115 after Chet Holmgren’s dunk, Washington pump-faked to get Shai Gilgeous-Alexander in the air and the whistle blew as his shot fell short.

After the Thunder’s challenge was unsuccessful, Washington made the first two free throws before intentionally missing the third. Jalen Williams’ desperation heave at the buzzer wasn’t close.

Luka Dončić had 29 points, 10 rebounds and 10 assists for his third straight triple-double and Kyrie Irving and Derrick Jones Jr. each added 22 points for Dallas, which rallied from a 17-point deficit in the third quarter.

The Mavericks will face the winner of the Minnesota-Denver series with that headed to Game 7 on Sunday.

Gilgeous-Alexander had 36 points and Williams finished with 22, nine rebounds and eight assists. The Thunder lost four of five games following a 5-0 start to the playoffs.

Holmgren’s dunk with 8:26 left in the third extended the Thunder’s lead to 77-60, but Doncic and Irving combined for the next 13 points to make it 77-73.

The final sequence capped a fourth quarter that had five lead changes and two ties in the final five minutes.

Irving improved to 14-0 in closeout games in his career and had a 3-pointer to get Dallas within two midway through the fourth, the closest it had been since the second quarter.