A missing pet was reunited with its family after being rescued from a slick canal.

The Press-Enterprise reported that animal control officers responded to a call Monday afternoon about a dog stuck in a canal in Riverside, California, according to Riverside County Department of Animal Services spokesman John Welsh.

>> Read more trending news

Welsh said Officer Denise Westbrook was the first to respond.

“After locating the dog, Westbrook asked for assistance and officers Mary Salazar and Mike Cox responded,” Walsh said. “Lt. James Huffman arrived shortly thereafter and the four officers were able to lead the dog to a location with shorter banks.”

Officers were ale to get a loop around the dog and bring it to safety.

>> Need something to lift your spirits? Read more uplifting news

According to KCBS, the dog was reunited with the family because it had a microchip with their information on it.

“We’re excited that it all worked out,” Huffman said.