A 20-year-old man is being treated at a hospital for major injuries after plunging 30 feet down a cliff Sunday at Black Sands Beach in the Marin Headlands, officials said.

Crews described a harrowing rescue that included dodging large, crashing waves and falling rocks as teams from multiple jurisdictions joined in the effort.

A California Highway Patrol helicopter flew the man, who has not been identified, to John Muir Medical Center in Walnut Creek, where he was being treated. His condition was not released but his injuries were described as “major.”

The man fell sometime Sunday afternoon off the cliff on the picturesque stretch of coastline on the north side of the Golden Gate. National Park Service rangers worked with Southern Marin firefighters to reach the man and load him into the waiting helicopter.

Evan Sernoffsky is a San Francisco Chronicle staff writer. Email: esernoffsky@sfchronicle.com Twitter: @EvanSernoffsky