NEW YORK — New York City declared a public health emergency Tuesday over a measles outbreak centered in an ultra-Orthodox Jewish community and ordered mandatory vaccinations in the neighborhood.

Mayor Bill de Blasio announced the unusual order amid what he said was a measles crisis in Brooklyn’s Williamsburg section, where more than 250 people have gotten measles since September. Officials blamed the outbreak on “anti-vaxxers” spreading false information.

The order applies to anyone living, working or going to school in four ZIP codes in the neighborhood and requires all unvaccinated people at risk of exposure to the virus to get the vaccine, including children over 6 months old.

The city health commissioner is empowered by law to issue such orders in cases when they might be necessary to protect against a serious public health threat.

The city can’t physically force someone to get a vaccination, but officials said people who ignore the order could be fined $1,000. The city said it would help everyone covered by the order get the vaccine if they can’t get it quickly through their regular medical provider.

“If people will simply cooperate quickly, nobody will have to pay a fine,” de Blasio said.

Officials say 285 measles cases have been confirmed in New York City since the beginning of the outbreak, the largest in the city since 1991.

New York City accounted for about two-thirds of all U.S. measles cases reported last week.

Ordering people to be vaccinated without their consent is “an extreme measure which is not provided for in the law and raises civil liberties concerns about forced medical treatment,” Donna Lieberman, executive director of the New York Civil Liberties Union, said in a written statement.

The majority of religious leaders in Brooklyn’s large Orthodox communities support vaccination efforts, said the city’s health commissioner, Dr. Oxiris Barbot, but rates have remained low in some areas because of resistance from some groups that believe the inoculations are dangerous.

“This outbreak is being fueled by a small group of anti-vaxxers in these neighborhoods. They have been spreading dangerous misinformation based on fake science,” Barbot said. “We stand with the majority of people in this community who have worked hard to protect their children and those at risk. We’ve seen a large increase in the number of people vaccinated in these neighborhoods.”

Officials also noted that Passover is approaching, meaning increased travel among people who could carry measles to or from New York. Israel, for instance, also has a current measles outbreak.