A 25-year-old man was arrested Thursday night after shots were fired in Portland’s Old Port.

Noor Mohamed was charged with possession of a firearm by a prohibited person, reckless conduct with a dangerous weapon, operating under the influence, operating a vehicle without a license and unauthorized use of property.

Mohamed was being held at the Cumberland County Jail in Portland. It was not immediately clear where he lives, said Portland police Lt. Robert Martin.

He has previous addresses in Biddeford, Portland, Gray and Roxbury, Massachusetts, Martin said.

Martin said Mohamed was driving on Silver Street near Commercial Street when he got into an altercation with a group of men nearby.

“Shortly after, witnesses reported hearing gunshots,” Martin said.

The shots were fired just after 11:30 p.m. in the area of Silver and Fore streets, according to tweets by police.

The men ran away, and then witnesses heard more gunshots, before Mohamed took off in his car, going the wrong way on Silver Street.

Martin said Mohamed then struck a curb, disabling the car, and ran off. Officers caught up with him near the intersection of Fore and Pearl streets, where he was taken into custody, Martin said.

Police found the firearm about 2 p.m. Friday, police said.

Bail information was not immediately available. State courts were closed Friday for the Veterans Day holiday, so unless Mohamed is released on bail, he is likely to make a first appearance in Portland Unified Criminal Court no earlier than Monday.

Detectives asked that anyone who witnessed the incident call 874-8575.