France's top court has ruled that a law aimed at ending cockfighting in France is constitutional.

The Constitutional Council confirmed on Friday the ban on the creation of new cockfighting rings — called cockpits. The law had been challenged by supporters of the tradition.

The law, dating back to 1964, aims to gradually get rid of all cockpits and therefore, cockfighting.

Cockfighting is legal only in regions where it's considered a deeply-rooted tradition, especially in northern France and the French territories Reunion island, French Guyana, and French Antilles.

Otherwise, it is considered animal cruelty and is punishable by up to two years imprisonment and a fine of 30,000 euros ($33,000).

Cockfighting is a common practice in Southeast Asia and parts of Latin America, but is illegal in most Western countries.