A pup has been reunited with his owner after spending more than a year lost in the desert.

Michael Greer saw his dog for the first time in 371 days Tuesday, Oct. 18, after the little guy was found wandering in Indio – about 25 miles from his Palm Springs home – and rescued by a Riverside County Animal Services officer.

Greer left 6-year-old Scruffy with a friend in October 2015 while he was out of town. The terrier somehow escaped the home near the Bermuda Dunes Country Club just west of Indio, according to a news release from the Animal Services Department.

Greer searched, but never managed to find his dog on his own.

More than a year later, Scruffy was picked up in Indio and taken to the Coachella Valley Animal Campus in Thousand Palms, where staff learned he had a microchip.

Soon after, a teary-eyed Greer arrived at the shelter to reclaim his pal.

“He was crying when he found out his dog was with us,” supervising animal care technician Marisa Sanabria is quoted as saying in the release.

Greer had been at the shelter looking for little Scruffy so many times that the staff recognized him when he came to see his pup.

“When he saw his dog, he wanted to jump in the kennel,” Sanabria said. “He couldn’t believe his dog was here.”