A 47-year-old Buffalo man pleaded guilty Wednesday before U.S. District Judge Richard J. Arcara to conspiracy to distribute and possess with intent to distribute heroin and cocaine.

Juan Montanez faces a prison term of up to 20 years and a $1 million fine, or both, when he is sentenced Oct. 4.

U.S. Attorney William J. Hochul Jr. said Montanez was one of three defendants arrested March 6, 2012, after law enforcement officers executed a search warrant at a residence in Buffalo.

Officers seized heroin, cocaine, ammunition and drug paraphernalia.

Co-defendant Erick Joel Reyes Barretto was convicted of conspiracy to possess with intent to distribute heroin and cocaine and sentenced to 60 months in prison in April 2013.

Pascual Giovanny Navarro Gonzalez is scheduled to go to trial in the case Aug. 6.