A day of fishing for four teens ended Saturday with a helicopter rescue along the coast near the Sonoma‑Mendocino county line, the Sonoma County Sheriff’s Office said.

The teens, 15 and 16 years old, had climbed out on rocks earlier in the day but were trapped when the tide came in later that evening, the sheriff’s office said. A 6:40 p.m. call for help launched the sheriff’s helicopter from its hanger at the Charles M. Schulz‑Sonoma County Airport.

The helicopter crew reached the teens in 17 minutes, dropping a 100-foot rescue line and hoisting the four to safety from their perch just inside Mendocino County within seven minutes, officials said.

The 16-year-olds were from Annapolis and The Sea Ranch, and the 15-year-olds were from Gualala and Point Arena, officials said.

Sheriff’s officials in a Facebook post said no one was injured and that the four did the right thing by staying put and not jumping into the water. Officials also suggested they obtain a book on tide times.

You can reach Staff Writer Randi Rossmann at 707‑521-5412 or randi.rossmann@pressdemocrat.com. On Twitter@rossmannreport.