Jelena Brooks scored the final five points as Serbia advanced to the quarterfinals by beating South Korea 65-61 on Sunday night in the women's Olympic tournament.

Jihyun Park's 3-pointer with 4:07 left gave South Korea its last lead at 61-58. Tina Krajisnik scored on a layup, then Brooks put Serbia ahead to stay with two free throws with 2:32 to go.

CLICK HERE FOR MORE SPORTS COVERAGE ON FOXNEWS.COM

Serbia then forced a shot clock violation, and Brooks finished the scoring with a three-point play with 1:12 remaining to seal the win.

Serbia (2-1), which won bronze in its Olympic debut at the 2016 Rio Games, finished Group A play in second place.

South Korea (0-3) went winless in its first Olympics since 2008.

Aleksandra Crvendakic led Serbia with 15 points. Krajisnik scored 14, Yvonne Anderson added 12 and Brooks finished with 11. Sonja Vasic had 10 rebounds.

Park led South Korea with 17 points, and Kim Danbi had 15. Leeseul Kang finished 1 of 13 and missed all 10 of her 3-point attempts. Yebin Yoon was 2-of-11 and 2-of-7 beyond the arc.

CLICK HERE TO GET THE FOX NEWS APP

Serbia led throughout until the fourth quarter when Korea opened with a 14-6 run. Yoon’s 3 gave South Korea its first lead of the game at 58-56 with 4:45 left.

The quarterfinals are Wednesday with Serbia's opponent to be set in a draw Monday night after group play concludes.