A Lewiston man was sentenced Wednesday to seven years in federal prison on drug and gun charges, authorities said.

Matthew Mennealy, 34, was first arrested in 2014 after agents stopped a car in which he was the passenger. Inside the vehicle, police found crack cocaine, oxycodone pills, heroin and a loaded 22-caliber handgun.

After obtaining a search warrant for Mennealy’s home, agents found more drugs hidden in a container concealed above his basement ceiling.

Inside that container was 46 grams of crack cocaine, 79 grams of cocaine, 59 grams of heroin and 106 oxycodone pills. Agents also found two loaded handguns in the home. He was indicted in June 2015 on the drug trafficking and weapons charges, and pleaded guilty to those charges in January.

The sentence was handed down by U.S. District Judge George Z. Singal.