A 34-year-old man was rescued Wednesday evening after he became lost while hiking between Bear Canyon Trail and the Mallory Cave Trail in Boulder.

The Boulder County Sheriff’s Office received a call from the man at 5:36 p.m. saying he had gotten lost and was not able to find the trail, according to a sheriff’s office news release.

The release said that a ranger from City of Boulder Open Space and Mountain Parks used a GPS coordinate received through 911. The ranger was able to figure out that the man was between the Mallory cave trail and the Bear Canyon trail.

The ranger was able to find the man and escort him down to the trailhead safely.  The hiker’s only complaint was being dehydrated. The rescue took approximately two and half hours.