A British court has sentenced seven men to prison — one for 32 years — for raping and sexually abusing babies and young children and sharing the abuse online through pictures and live videos.

At the sentencing Friday at Bristol Crown Court, Judge Julian Lambert said the men had engaged in "some of the most depraved and grossly deviant behavior imaginable."

The men, aged 30 to 51, were given prison sentences of two to 32 years.

The National Crime Agency began investigating in September 2014 when one of the men was arrested and admitted to sexually abusing a child under 5 years old. The probe was then expanded and identified other offenders in the group.

Authorities identified and safeguarded three victims — a baby and two young children.