In a landmark ruling for gay rights in South Korea on Thursday, the country’s Supreme Court ruled that same-sex couples qualify for the national health insurance’s dependent coverage, a decision that rights activists hoped could pave the way for legalizing same-sex marriage in the country.

The decision would allow same-sex couples in the country to register their partners as dependents in national health insurance coverage like married couples or couples in a common-law marriage can. It was one of the numerous benefits denied to same-sex and other couples living outside of the traditional norms of family in South Korea.

In its ruling on Thursday, the country’s highest court ruled that denying a same-sex couple national health insurance dependent coverage “just because they are of the same sex” constitutes a serious discrimination that infringed upon citizens’ “dignity and values, their rights to pursue happiness, their freedom of privacy and their rights to be equally treated by the law.”

In its final say on the case on Thursday, the Supreme Court endorsed the appeals court ruling. It said that same-sex couples formed an “economic cohabitation tantamount to” married and common-law couples.