A judge has sentenced an Oakland man to 15 years in federal prison for carrying a gun while involved in drug trafficking, authorities announced.

Quentel Reed, 31, pleaded guilty in November to the charge that he was carrying approximately 59 grams of crack cocaine when he was arrested by officers near an Oakland high school last year, according to Melinda Haag, the U.S. Attorney for the Northern District of California. U.S. District Court Judge Yvonne Gonzalez Rogers sentenced Reed on Thursday.

Reed also admitted to carrying a 9 mm semi-automatic weapon fitted with a large capacity magazine loaded with 17 rounds of ammunition, Haag said.

Court documents said Oakland police chased down Reed near McClymonds High after he tried to run from them when they approached on Feb. 9, 2012. Reed was standing on the street when officers approached, court documents said, and he tried to throw away a bag containing drugs as he ran from officers.

Reed also threw the gun over a fence into a vacant lot during the chase, court documents said.

A federal grand jury indicted Reed last March and charged him with being a felon in possession of a firearm and ammunition, possession with intent to distribute cocaine base and possession of a firearm in furtherance of drug trafficking, Haag said.

Contact Rick Hurd at rhurd@bayareanewsgroup.com. Follow him at Twitter.com/3rdERH.