India’s top court has ruled the practice of instant divorce in Islam unconstitutional, marking a major victory for women’s rights activists.

In a 3-2 majority verdict, the Supreme Court said legislation must follow.

The landmark court decision came after petitions challenging the so-called “Triple Talaq” custom were filed.

The cases were filed by five Muslim women who had been divorced this way and two rights groups.

Three of the judges called the controversial practice “Unislamic, Arbitrary and Unconstitutional”. The court has also asked parliament to legislate on the issue.

India does not have a uniform set of laws on marriage and divorce that applies to every citizen.