The Queens native who fell off a cliff in Thailand while trying to escape her rapist courageously joined the tens of thousands of runners in the New York City Marathon on Sunday.

Hannah Gavios, 25, who fractured her spine in the fall, battled her way through the 26.2-mile, five-borough course on crutches — and finished in 11 hours, just after 8 p.m.

Though most of the competitors had finished long before, she was still greeted by a crowd of well-wishers at the finish line.

“I didn’t expect this many people,” Hannah said, shaking with fatigue and crying. “It just shows my city has my back. My city is awesome, waiting for me here — I don’t know how long everyone waited for me — it just means so much to me that you guys stayed. Thank you.”

Two weeks ago, Gavios told The Post that she was participating in the event because “I’m going to be a functioning human — I don’t want to feel like I’m left behind.’’

After the race — which she finished in 11:20:32 — she said that her main thought as she competed was “Just getting through pain.”

Hannah was severely injured during a horrifying encounter with a would-be rapist in Thailand in 2016, as she fled him in the dark and tumbled off a 150-foot cliff.

She joined everyone from NYPD cops to celebrities to professional runners on the 26.2-mile course, which begins in Staten Island and ends in Central Park.

A close friend of slain NYPD Sgt. Paul Tuozzolo was among the runners.

Anne-Marie Dunn, 37, was wearing a bib featuring the precinct and badge number of Tuozzolo — who was shot and killed on duty in The Bronx in 2016, two years to the day before Sunday’s marathon — when Dunn crossed the finish line.

NYPD Sgt. Timothy Dowling was the first department cop to finish the race this year, with a time of 2 hours, 58 minutes and 9 seconds, according to records kept by race organizers.

Former “Desperate Housewives’’ TV star Teri Hatcher also ran with her 20-year-old daughter, Emerson Tenney.

Hatcher finished in 5 hours, 51 minutes and 21 seconds, with her daughter 5 seconds behind.

Former New York Giants running back Tiki Barber finished in 4 hours, 44 minutes and 47 seconds.

“I’m going to take a shower, then go get some beers,” Barber said after he crossed the finish line. “And maybe a big hamburger.”