NEW YORK -- Joyciline Jepkosgei had never pushed her powerful legs for 26.2 miles.
It hardly showed Sunday -- certainly not as she drove away from marathon veteran Mary Keitany.
Jepkosgei upset the four-time New York City Marathon champion to win the women's race, a historic debut that left her seven seconds off the course record.
Geoffrey Kamworor of Kenya won the men's event for the second time in three years.
After pulling away from Kenyan countrymate Keitany with about three miles left, Jepkosgei crossed the finish in Central Park in 2 hours, 22 minutes and 38 seconds, the second-best run in course history.
The 25-year-old holds the world record in the half-marathon but had never run this distance. She looked pained climbing the final hill but strode confidently over the final line.
It was too much for Keitany, a 37-year-old who collapsed after finishing 53 seconds later. She had won four of the previous five NYC Marathons.
Jepkosgei is the youngest New York winner since 25-year-old Margaret Okayo in 2001. She also won the New York City Half-Marathon in March and is the first runner to win both events.
Kamworor made it a Kenyan sweep moments later with a final time of 2:08:13.
He pulled away from countryman Albert Korir in the 24th mile. Korir finished second, and Ethiopian sub-elite runner Girma Bekele Gebre was third.
Defending men's champion Lelisa Desisa dropped out after 7 miles, perhaps hurting after a grueling victory at the sweltering world championships last month.
Desisa, who is from Ethiopia, was in 17th place at the 7-mile mark before leaving the course. It was 45 degrees at the start of the men's race, ideal for marathoning.
Kamworor, who is 26, finished third last year after winning in 2017.
He was greeted at the finish line by training partner Eliud Kipchoge, who completed the first sub-2-hour marathon last month -- a feat accomplished under conditions so tightly controlled it didn't qualify for the record books.
Kamworor, who is the world-record holder in the half-marathon, is the 10th multitime winner.
American Desiree Linden set the pace for the women early and was the top U.S. finisher at sixth. The 2018 Boston Marathon winner hasn't decided whether she will push on to the Olympic team trials in Atlanta on Feb. 29.
The 36-year-old wants to gauge her recovery before deciding whether to pursue a third Olympics.
"Right now's not the time, just based on how my calves and my feet feel," Linden said, half-jokingly.
Kellyn Taylor, an American putting her firefighting career on hold to pursue the Olympics, finished seventh.
Sara Hall, another U.S. Olympic hopeful who has taken on an unusually heavy race schedule, dropped out in Mile 18 after running the Berlin Marathon on Sept. 29.
Manuela Schar of Switzerland won her third straight women's wheelchair title, giving her eight consecutive marathon major victories. After rolling ahead of the record pace for much of the race, Schar crossed the finish about a minute off the mark at 1:44:20.
Daniel Romanchuk of the United States repeated as men's wheelchair champion in another tight finish over Switzerland's Marcel Hug. Romanchuk held off Hug by one second for the second straight year, crossing the finish line in 1:37:24. England's David Weir and American Aaron Pike were also within 10 seconds.
Last year, as a 20-year-old, Romanchuk became the first American and youngest competitor to win the men's division. He followed with victories this year at the Boston and London marathons. Hug took the New York title in 2016 and 2017.
Organizers were expecting around 52,000 runners to complete the marathon a year after a world record 52,813 crossed the finish.