A Brazilian runner who was competing and leading the New York City Marathon on Sunday collapsed.

Daniel Do Nascimento ran the first half of the race in a blistering 1:01.22, which put him two minutes ahead of the course-record pace. He had been leading by nearly two minutes for the first 15 miles before he started to slow down.

CLICK HERE FOR MORE SPORTS COVERAGE ON FOXNEWS.COM

Daniel Do Nascimento collapses in NYC Marathon

Daniel Do Nascimento of Brazil, left, lies on the pavement after collapsing during the New York City Marathon, Nov. 6, 2022, in New York. (AP Photo/Julia Nikhinson)

He collapsed right before the course turned back to Manhattan and was quickly attended to by medical professionals. A few miles earlier, he had taken a 20-second bathroom break and stopped to walk before he collapsed.

Race officials later said he was doing OK. The race ran at unseasonably warm temperatures. Temperatures were in the mid-70s.

CHICAGO MARATHON'S QUIET NONBINARY DIVISION ADDITION 'FEELS HURTFUL,' RUNNER SAYS

Evans Chebet wins the 2022 NYC Marathon

Evans Chebet of Kenya crosses the finish line first in the men's division of the New York City Marathon, Nov. 6, 2022, in New York. (AP Photo/Jason DeCrow)

Evans Chebet of Kenya won the men’s circuit. He finished in 2 hours, 8 minutes and 41 seconds. He finished just 13 seconds ahead of second-place finisher Shura Kitata of Ethiopia.

Chebet said he saw Do Nascimento go down but continued to race on. He said he "felt bad for him but had to continue to race."

"He knew that it was hot and humid and (Do Nascimento) was going at a high pace," Chebet told reporters through a translator. "He has a lot of experience, and he knew he was going to surpass him."

Chebet won the Boston Marathon earlier in the year.

Sharon Lokedi wins the women's division

Sharon Lokedi of Kenya crosses the finish line first in the women's division of the New York City Marathon, Nov. 6, 2022, in New York. (AP Photo/Jason DeCrow)

CLICK HERE TO GET THE FOX NEWS APP

Sharon Lokedi of Kenya won the women's division.

The Associated Press contributed to this report.