BANGOR, Maine — A New York man was sentenced Tuesday in U.S. District Court to nearly six years in prison on gun and drug charges.

Levell L. Matthews, 26, of New York City was convicted in September by a jury of one count each of conspiracy to make false statements in a firearms application, being a felon in possession of a firearm and drug possession.

Marijuana was found hidden in Matthews’ underwear, according to court documents.

U.S. District Judge John Woodcock sentenced Matthews to five years and 10 months in federal prison followed by three years of supervised release, according to a press release issued Wednesday by the U.S. attorney’s office.

The judge also ordered Matthews to pay a fine of more than $4,600.

Matthews was prevented from possessing a firearm due to a January 2009 drug conviction in New York state, according to the release. In October 2011, he and two other people visited a Bangor pawn shop twice. While there, Matthews handled four firearms, which is possession under federal law.

Even though Matthews did not actually purchase a gun, he broke the law by handling the firearms because he was a prohibited person under federal gun laws, according to the U.S. attorney’s office.

Matthews faced up to 10 years in prison and a fine of up to $250,000 on the gun possession charge alone. He remains free on $10,000 unsecured bail and is to begin serving his sentence in May, according to court documents.

Two other people were charged in connection with Matthews’ case.

Renee Weeks, 39, of Bangor filled out the paperwork to purchase a gun and paid for it with money given to her by Matthews, according to the release. Weeks waived indictment and pleaded guilty in March to conspiracy to make false statements in a firearms application.

In July, Weeks’ personal recognizance bail was revoked when she allegedly sold her prescription amphetamines in an unrelated case. She waived indictment and pleaded guilty in December to conspiracy to distribute a mixture or substance containing amphetamine.

Victor “V” Morales, 22, of Brooklyn, N.Y., has been charged with conspiracy to make false statements in a firearms application in connection with the attempted gun purchase. In an unrelated case, Morales has been charged with two counts of distribution of crack cocaine. He remains free on $100,000 unsecured bail.