Women in Saudi Arabia will be notified by text message if they are divorced under a new law designed to protect them from having their marriage ended without their knowledge, the government said on Sunday.

The new law, which came into effect on Sunday, was seen as a way to end secret divorces and ensure women are fully aware of their marital status so they can protect rights such as alimony.

The move comes as Crown Prince Mohammed bin Salman has started to give women more rights in the conservative kingdom, which included lifting a ban on women driving last year.