This is an archived article and the information in the article may be outdated. Please look at the time stamp on the story to see when it was last updated.

Firefighters rescued a small dog who had been stuck in a drain pipe on the UC Santa Barbara campus for three days, officials said.

The Santa Barbara County Fire Department shared photos of their rescue of 2-year-old Sophie on Thursday.

The 10- to 15-pound dog had been missing for about a month from her home, which is about five minutes away, Capt. Daniel Bertucelli told KEYT in Santa Barbara.

How Sophie ended up in the 18-inch pipe remains a mystery, but the Fire Department said the dog was spotted in the area earlier in the week.

It took crews about 20 minutes to retrieve Sophie using a hose to coax her to the surface, according to the Fire Department.