A crowd of more than 200 people confronted police at the Ocean City boardwalk early Sunday, with some people cursing officers and throwing bottles, police said.
The crowd was "hostile and aggressive" when officers tried to disperse them shortly before 1 a.m., police said.
Seven young adults were arrested, while dozens of officers, including sheriffs deputies and state police, responded to the scene at 7th Street and the boardwalk.
"A large number of young adults who gathered on the Boardwalk chose to disobey our laws and treat our town without respect. This activity will not be tolerated," Ocean City Police said in a statement.
The confrontation came three hours after five people were arrested when police said they assaulted and interfered with officers on the boardwalk.
About 9:45 p.m. Saturday, a 26-year-old from Silver Spring kicked a trash can onto the crowded boardwalk at 1st Street, police said. Officers tried to arrest him and then, according to police, he became aggressive. A crowd formed and several people assaulted the officers, police said.
Twelve people were arrested in the two incidents and face charges ranging from unlawful assembly to assaulting an officer.