Delray Beach, Florida, has canceled its St. Patrick's Day parade and will withdraw city sponsorship of its June Pride celebrations, citing a new state anti-DEI law, according to the city's announcement reported by NPR.

The city will stop sponsoring these events because of a law that takes effect Jan. 1. The city lawyer told Mayor Tom Carney that government-sponsored celebrations of culture, ethnicity or heritage that are not national holidays could violate the law. Carney said he made the decision to cancel the parade, which has been held annually since 1970.

The law, SB1134, was backed by Gov. Ron DeSantis, a Republican. It prohibits taxpayer dollars from going toward diversity, equity and inclusion initiatives. The measure says officials who violate it could face civil or legal consequences.

Carney, a Republican of Irish descent, said the parade was privately run until about eight years ago. He said he would support a private sponsor taking over the parade or the Pride events if one comes forward. He said the city attorney reached a different conclusion from the governor about what the law requires.

DeSantis accused the city of "malicious compliance" in a post on X. He wrote that the cancellation is not mandated by Florida law and is an attempt to make a political point. Carney said he takes the governor at his word but that the city is trying to avoid legal trouble.

Delray Beach officials said they have received many emails, calls and social media messages from residents angry about the cancellation.