A Kenyan woman running her first-ever marathon took the 49th annual New York City Marathon title on Sunday.

Joyciline Jepkosgei, 26, won the women’s marathon with a finish time of 2:22:38 and walked away with the $100,000 first-place prize.

She is the first runner to win a New York City half-marathon and marathon in the same year.

“I didn’t know I won it,” Jepkosgei said, “My focus was on finishing the race strong, but in the last kilometers, I see that I’m approaching the finish line and I was capable of winning and I am happy.”

“I didn’t actually know I could win,” she added, mentioning women’s reigning champ Mary Keitnay, who placed second.

Fellow Kenyan Geoffrey Kamworor, also 26, won the men’s marathon with a 2:08:13 finish time.

He also bested the field in 2017.

“The New York City marathon is a really special one,” Kamworor said after the race. “The start to finish, there are a lot of crowds cheering and it’s a lot of morale along the route.”

Kamworor’s path to victory was cleared when defending champ Lelisa Desisa dropped out of this year’s race — quitting after just seven miles.

He had a tight hamstring and a race official noted to The Post that he was competing just 29 days after winning the grueling World Athletics Championships marathon in Qatar where temperatures were 90 degrees.

Jepkosgei, a member of the Kenya Defense Forces, holds the world record for fastest half-marathon and fastest 10K — the only woman to have run the distance in under 30 minutes.

But Sunday was her first-ever marathon and she missed the existing Big Apple record by just 7 seconds.

Jepkosgei denied a fifth title to defending champion Mary Keitany.

American Daniel Romanchuk was victorious in the men’s wheelchair division, crossing the finish line in just 1:37:24, while Tatyana McFadden and Susannah Scaroni also placed second and third in the women’s wheelchair division.

More than 52,000 runners from 125 countries and all 50 states flocked to Staten Island at the crack of dawn in the chilly 44-degree morning air for the start of the iconic race which is now in its 49th year.

Runners from around the world told The Post that competing in the New York City marathon was a dream and said the crowds were unlike anywhere else.

Twins Carlos Zaragoza and Alvaro Zaragoza, 33, came all the way from Madrid, Spain, to run in Sunday’s race.

“This is our third time in America. We always come for a marathon, but this is our first time running in the NYC marathon,” Carlos said.

“This is going to be the biggest marathon we have ever run. This is our dream. We started running 24 years ago,” he said.

“People here are so helpful” added Alvaro. “The number of runners at the Madrid Marathon is around 12,000. This marathon is much bigger and they still make you feel welcome and warm.”

The event is a massive feat. The iconic race relies on an army of volunteers and workers — with thousands of police officers, 1500 medical volunteers and 57 ambulances amassing along the route.

Thousands of spectators have also lined the grueling 26.2-mile route to cheer on loved ones and strangers alike.

On 112th Street and Fifth Avenue, Caroline Murray, 50, and her husband Chris Taeger, 58, sat on the sidelines of mile 22 to support their niece Becky who is running.

“It’s an incredible accomplishment and we’re only getting to see the end of all that hard work,” Murray said.

“We’re going to do plenty of carb loading after this,” she joked. “We’ll probably go to Harlem Shake.”