(CNN) Austria's top court has ruled that same-sex couples can get married from the start of 2019, declaring a previous law discriminatory.

The Constitutional Court overturned a law that restricted same-sex unions to civil partnerships, according to court documents seen by CNN.

The decision brings Austria into line with many other European nations including Germany, Spain, Belgium, the Netherlands, France and the UK.

#ehefüralle #eheöffnung #wienliebe A post shared by Stefanie Grubich (@frauenbergers) on Dec 5, 2017 at 7:38am PST

Heute hat die Liebe gewonnen ❤️🌈! Der Verfassungsgerichtshof Österreich hat entschieden, dass die Unterscheidung zwischen Ehe und eingetragener Partnerschaft das Diskriminierungsverbot verletzt und die Ehe für alle Menschen geöffnet! Zur Feier des Tages haben wir am Rathaus die Regenbogenfahnen gehisst! #GleicheLiebe #GleicheRechte #EhefürAlle #lovewins A post shared by Jürgen Czernohorszky (@czernohorszky) on Dec 5, 2017 at 5:05am PST

Same-sex couples in Austria have been allowed to enter legal partnerships since 2010, but until now have not been able to marry.

The court made its decision based on a complaint from two women living in a partnership who refused to accept that their formal marriage permission was denied by authorities in Vienna.

Read More