New York City Mayor Michael R. Bloomberg waits to speak at a gun violence summit at Johns Hopkins Bloomberg School of Public Health in Baltimore in January. (AP Photo/Patrick Semansky)

In his bid for Maryland attorney general, Sen. Brian E. Frosh has picked up the endorsement of outgoing New York Mayor Michael R. Bloomberg, a noted national gun-control proponent.

Frosh (D-Montgomery), chairman of the Judicial Proceedings Committee, shepherded legislation introduced by Gov. Martin O’Malley (D) through the Senate this year that subjects handgun purchasers to new fingerprinting and training requirements.

The legislation, which took effect Oct. 1, also bans 45 types of assault rifles and magazines that hold more than 10 rounds, and includes steps intended to make it harder for those who are mentally ill to obtain firearms.

“Reducing gun violence in America is a moral and social imperative,” Bloomberg said in a statement. “No one has done more in Maryland than Brian Frosh to lead the fight against illegal guns and protect citizens from incidents of gun violence.”

Bloomberg, who steps down as mayor in two weeks, is co-chairman of Mayors Against Illegal Guns and has poured millions of dollars of his own money into efforts to curb gun violence around the country and elect like-minded candidates.

“I’m honored to have Mayor Bloomberg’s support,” Frosh said. “His efforts to prevent gun violence have been an example for the nation, and we believe that Maryland’s new law will save thousands of lives.”

Frosh faces three fellow legislators in the June Democratic primary for Maryland attorney general: Dels. Aisha N. Braveboy (D-Prince George’s), Jon S. Cardin (D-Baltimore County) and C. William Frick (D-Montgomery).

The candidates are running to succeed Attorney General Douglas F. Gansler (D), who is competing in a competitive primary for governor next year.