Two Maryland men were arrested over the weekend in connection with an assault that may be linked to gang activity in Prince George’s County, police said.

Elder Molina-Umana, 23, of Hyattsville, and Antoni Rivas-Melendez, 24, of Glen Dale, have been charged with attempted murder, first-degree assault, second-degree assault, resisting arrest, carrying a concealed deadly weapon, and possession of marijuana, police said.

According to police, about 1:46 a.m. Sunday, a Takoma Park gang investigator reported to Mogotillo’s Restaurant in the 7600 block of New Hampshire Avenue after receiving information about gang activity at that location.

While there, the officer saw a man, later identified as the restaurant’s security officer, running from the front of the restaurant to the parking lot.

He was being chased by a man with a machete.

The Takoma Park officer requested back-up and identified himself, ordering the man with the machete — later identified as Molina-Umana — to drop his weapon.

Molina-Umana dropped the weapon and attempted to flee on foot.

The officer caught up to Molina-Umana and took him into custody.

An investigation revealed that a second man, Rivas-Melendez, also attempted to assault the security officer, police said.

Rivas-Melendez was found to be in possession of a butterfly-style knife and a small amount of marijuana, police said.

According to police, the security officer said that he had told the two suspects that they could not leave the restaurant with an open container of alcohol.

The two men left the restaurant, but returned later and attempted to engage the security officer in a fight, police said.

Police said that Rivas-Melendez charged at the security officer with his fists raised, but the victim pepper-sprayed him in defense.

Then Molina-Umana pulled out the machete and hit the security officer in the head before chasing him into the parking lot, police said.

The hit to the head was a non-life-threatening injury, police said.

Police said that both suspects are associated with a gang, but did not indicate which one.