A man has been detained after allegedly unleashing his two pet dogs to attack people, Shanghai police said on Monday.

The incident took place in a residential complex in Wusong town of Baoshan District at 6:20pm on August 15.

A resident, a man named Xu took his white Poodle for a stroll, but at an entrance of the residential complex, an unleashed dog came out of nowhere and attacked the Poodle and Xu, footage of a surveillance camera shows.

Baoshan police

Xu’s wife, a woman surnamed Jiang, said the Poodle was bit in four spots on its behind and injured in the anal glands, and Xu was injured in his back.

Police said the dog which hurt the Poodle and Xu was registered as “mixed-breed.”

Jiang then came up to protect the Poodle, but another unleashed dog, a Labrador, began a renewed attack at the Poodle and also Jiang.

Baoshan police

Jiang was injured in a finger of her left hand.

"Hell broke loose that day," she said.

Police said the Labrador was also registered.

At that point, the owner of the two dogs, a man surnamed Wang, showed up and led the dogs away, but not far ahead he unleashed his dogs again with the dogs menacing passers-by.

There the couple’s daughter came and took over the Poodle, and the two fierce dogs attacked her and injured her in the arms.

Baoshan police

After the incident, when police looked for Wang and his dogs, they found that Wang had had the dogs taken to Yangzhou City in Jiangsu Province.

After a request from the police, Wang revealed the location of the dogs, and police brought back the dogs to Shanghai immediately afterward.

The pet registration of the two dogs has been annulled and the dogs are now kept in a shelter, police said.

Wang allegedly said he “drank some wine” that day and “became lazy” in reining in his dogs, but he regretted the consequences to the people injured by the dogs.