SAN FRANCISCO (CBS SF) — Firefighters rescued a man from the caves near Sutro Baths on the western shore of San Francisco Thursday evening, fire officials said.

The 18-year-old man was reported stranded just before 5 p.m. when he became stuck in the caves just below Cliff House restaurant at 1090 Point Lobos Ave., fire spokesman Jonathan Baxter said.

READ MORE: 'The Long Good-Bye'; New Hope In The Battle Against Alzheimer’s Disease

While in the process of making that rescue, firefighters learned of a woman who needed rescue as well. She had been walking in the area of the bottom of the cliff and fell, suffering a minor injury, Baxter said.

READ MORE: Bay Area Motorists Suffering From Gas Pump Sticker Shock As Prices Continue To Soar

Firefighters helped the woman back up the cliff. A short time later, they also helped the man to safety, who was uninjured, Baxter said.

Baxter didn’t immediately know how the man ended up stuck in the cave but said that sometimes people walking in that area become stuck when the tide comes in.

MORE NEWS: Oakland Police Deploy Tactical Teams To Counter Surge In Violent Crime

© Copyright 2017 by CBS San Francisco and Bay City News Service. All rights reserved. This material may not be published, broadcast, rewritten or redistributed