Kirby Lee-USA TODAY Sports

2017 marks the 40th anniversary of the San Francisco Marathon, and the momentous occasion is a record-breaking one, as well.

According to NBC Bay Area, the 27,500 runners taking part in this year's race mark the largest group in the marathon's history.

Whether you're just a casual spectator or plan to hit multiple viewing points to follow a friend or family member's progress, complete information about the marathon—including the route and course map—can be found on the event's official website.

Below, you'll find a summary of everything you need to know heading into Sunday's race, including how early you can stake out your perfect viewing spot or, if you're just a San Francisco resident trying to plan out your day Sunday, which streets to avoid.

2017 San Francisco Marathon

When: Sunday, July 23

Video Play Button Videos you might like

Start Time: 5:30 a.m. PDT, 8:30 a.m. EDT

Location: Mission St. and The Embarcadero

Though many people have trained for the full 26.2-mile marathon, Sunday will encapsulate multiple races.

In addition to the full marathon, there are also half marathons over the first half of the marathon route—which includes, per the website, "The Embarcadero near the Ferry Building, the seals at Fisherman’s Wharf, the serene calm of Golden Gate Park and the finish line festival"—as well as the second half.

The latter race will take runners through "historic and quintessential San Francisco neighborhoods, including Haight-Ashbury, Dogpatch and the Mission District," as well as past AT&T Park.



Of course, if 26.2 miles aren't enough for you, there's always the ultramarathon, which begins at midnight local time. Runners will run the full marathon all the way through before coming back and joining up with the next wave of marathon runners to do it all over again.

But you don't have to be a distance runner to get in on the action Sunday. The festivities also include a 5k.

When the running is over, runners and spectators alike can enjoy the Finish Line Festival, located at Justin Herman Plaza and taking place from 11 a.m. to 3:30 p.m. ET.

There will also be a beer garden at the Finish Line Festival...because, really, what tastes better after all that exertion in the California sun?

Street Closures

The race day detour map can be viewed in its entirety here. Per the event website, here are the notable street closures:

Golden Gate Park roads will be closed from 8:00 a.m. - 2:00 p.m. ET.

Northbound Embarcadero /King St. will be closed from 3rd St. to Broadway.

/King St. will be closed from 3rd St. to Broadway. Southbound Embarcadero will be closed from Broadway to Harrison.

will be closed from Broadway to Harrison. At Fisherman's Wharf, no vehicles will be allowed on Jefferson Street between Northpoint and Hyde.

In the South Beach area, Terry Francois Blvd. will be closed.

Muni Reroutes

In addition to street closures, a good portion of the Muni subway will be rerouted for the marathon. Per SFMTA.com, "many Muni routes and lines will be subject to reroutes or delays at various times throughout the race. Stops in affected areas will be missed. Expect delays throughout the City."

SFMTA encourages riders who plan to take the Muni the morning of the race to contact sf311.org to find out if their lines will be affected.

A full list of impacted lines and reroutes can be found on the SFMTA website.