A man was arrested Friday after a video of him having sex with a stray dog went viral. The incident took place in Mumbai, the capital city of the western Indian state of Maharashtra.

The incident came to light after the video went viral on social media. Vijay Rangare, an animal activist, saw the video which had the location tagged to it. He then went to the location and found the accused, Munmun Kumar Govardhan Kumar Ram, who confessed to the crime.

“A group of students had visited a friend in a nearby locality. One of them saw the incident from the balcony. The students were shocked and did not know what should be done. They saw the man having intercourse with the dog, and shot the video when the accused started making the dog have oral sex with him,” he said.

Rangare attempted to file a police complaint, however, the officials were reluctant as the video did not show penetrative sex. Rangare then contacted People for the Ethical Treatment of Animals India (PETA), which got in touch with the police commissioner following which the complaint was filed.

“I managed to trace the eyewitnesses who told the police that the man had also done penetrative sexual assault on the dog. I skipped my office for four days for this case because what the man did was inhuman. He could be a repeat offender and could also target children in future,” Rangare said.

Police said the dog was close to the accused as he fed it every day.

“We will interrogate the accused to find out if he had done anything similar to any other animal,” police said.

In this image, a dog's paw reaches through the kennel fence at the Queen Anne's County Department of Animal Service in Queenstown, Maryland, Jan. 24, 2008. Getty Images/Jim Watson