ALTADENA (CBSLA) — Some off-duty Marines hiking at Switzer Falls north of Altadena jumped into action to help a nearby hiker experiencing chest pains.

Montrose Search and Rescue was notified at about 4 p.m. Sunday that a hiker was experiencing chest pains on the Switzer Falls Trail.

READ MORE: LeBron James Apologizes To ‘Laker Nation’ After Blowout Loss

The hiker had used a personal locator beacon to alert authorities. But he still needed help getting off the five-mile trail, which is often described as difficult and very steep.

READ MORE: Groundbreaking Held On Skid Row For Renaissance Center To Help House LA Homeless Population

As local authorities worked their way downstream to the man, they found he had been carried upstream by four off-duty U.S. Marines from Camp Pendleton. The Marines had taken him further up the trail for a more rapid rescue, according to the Los Angeles County Sheriff’s Department.

The hiker was airlifted to a local hospital, where he is expected to recover.

MORE NEWS: At Least One Killed In Pileup On 105 Freeway In Paramount

(© Copyright 2018 CBS Broadcasting Inc. All Rights Reserved. City News Service contributed to this report.)