Gov. Andrew Cuomo approved a new law making New York one of the first states in the nation to ban discrimination based on ethnic hairstyles.

It amends the Human Rights Law by adding “traits historically associated with race, including but not limited to hair texture and protective hairstyles” to the definition of race.

The law would bar schools and businesses from having policies on braids, locks and other hairstyles that largely impact black women.

That’s discrimination, the governor and lawmakers said.

“For much of our nation’s history, people of color – particularly women – have been marginalized and discriminated against simply because of their hair style or texture,” Cuomo said.

“By signing this bill into law, we are taking an important step toward correcting that history and ensuring people of color are protected from all forms of discrimination.”

The law, called the CROWN Act, takes effect immediately.

California approved its own law, becoming the first state to do so.

Assemblywoman Tremaine Wright (D-Brooklyn) said the law is overdue.

“As a black woman who prioritizes equity, and has worn my natural [hair] for 17 years, this bill is deeply personal for me,” Wright said.

“A legislative fix was in order.”