A court in South Africa has ruled that the government has two years to honour the constitution by altering the law to give Muslim marriage formal recognition for the first time.

The case, heard in the Western Cape High Court, was brought by the Women's Legal Centre, which argued that the constitutional right to equality was being violated.

It said Muslim women in South Africa did not enjoy full marriage rights, particularly in relation to property and child access in the event of marital breakdown.