The two officers were arrested after the drug smuggler, Osvaldo Aldrete Dávila, filed a complaint against them. After a two-week jury trial, Compeán was found guilty on 11 counts, including discharging a firearm during the commission of a violent crime, which by itself carries a federally mandated 10-year minimum sentence. Without that charge, both agents involved would have received far shorter sentences. Instead, Compeán was sentenced to 12 years in prison, and his partner, Ignacio Ramos, was sentenced to 11 years in prison. Aldrete Dávila was granted immunity to testify against the two agents and received six border crossing visas to come to the United States and testify.