Boston police rescued five mistreated dogs from the basement of a Dorchester home, where a man was allegedly operating an illegal kennel, Suffolk County prosecutors said.

Tracey Young, 22, pleaded not guilty today in Dorchester District Court to operating the kennel, resisting arrest, and five counts of cruelty to animals.

Police responded at about 11:30 a.m. Thursday to 8 Glenrose St. in Dorchester to investigate a possible illegal apartment in the basement.

Advertisement - Continue Reading Below

When they arrived, officers met a building inspector who had been sent to look at the residence. Upon knocking on the basement door, they heard dogs barking, police said.

When Young opened the door, officers immediately smelled dog urine and feces. They also observed three dirty cages, each occupied by a dog.

Because of the excessive barking and odors, officers asked Young, who said he lived in the basement, to step outside so they could investigate more thoroughly. He became agitated, police said.

Officers found an additional two apparently mistreated dogs in the basement, police said.

The Animal Rescue League of Boston arrived at the scene and took the dogs to the Boston Animal Control shelter.

Tracey was released on his own recognizance after his arraignment. He was ordered to stay away from animals, and to stay away from Glenrose Street, said Jake Wark, a spokesman for Suffolk District Attorney Daniel F. Conley.

Tracey was on probation for a charge of receiving stolen property last year, prosecutors said.

He is set to return to court on March 12, prosecutors said.