A man and woman from San Francisco ended up stuck on a Rodeo Beach cliff Saturday, after they climbed down to rescue their dog.

The call came in at 1:30 p.m. Saturday, the Marin Independent Journal reports. The couple's dog had gotten stranded on the cliffside, and when they climbed down to save him or her, they got stuck, too.

“They didn’t fall, they shimmied themselves down into a precarious position,” Southern Marin Fire Protection District Captain Matthew Bouchard told the IJ.

“Then they got into a point where they couldn’t come back to the top.”

Bay City News reports that the trio was trapped about 80 feet from the top, when they "couldn’t climb any farther because of the steep terrain and the difficulty of handling the dog."

When they got to the scene, the SMFPD realized they needed a helicopter, and requested one from California Highway Patrol. Within 15 minutes, a crew of three had arrived to do what they call a "hoist rescue" with a firefighter rappelling down to secure the couple and pup as a CHP paramedic lifted them to safety.

The couple, who KRON 4 says is in their 30s, was unharmed in the incident. The dog had some scrapes, bumps, and an injury to his leg, but is expected to recover.

Related: SFFD Rescues Woman And Dog From Perilous Cliffside Perch