ANNAPOLIS, Md. — Sweeping restrictions on gun ownership passed the Maryland General Assembly on Thursday, including a ban on new purchases of assault weapons, a 10-bullet limit on magazines and requirements that handgun buyers undergo fingerprinting and target training.

The bill now heads to the desk of Gov. Martin O’Malley, a Democrat who has made tough gun control one of his top priorities this year and will get a chance to sign a bill very much like what he proposed.

With President Obama’s gun legislation stalled in Congress, Maryland becomes the fourth Democratic-led state to enact restrictions. It follows New York, Colorado and Connecticut, which on Wednesday passed one of the nation’s toughest laws, 3 ½ months after the massacre of 26 children and educators at Sandy Hook Elementary School there.

Maryland joins seven other states and the District of Columbia in banning new sales of military-style assault weapons, a measure dropped by Congressional gun control advocates because of fierce opposition.