President Donald Trump’s administration this week began denying visas to the unmarried, same-sex partners of foreign diplomats and officials and employees of the United Nations — making marriage a requirement to be eligible for a visa.

The policy was made effective Monday.

It comes despite the fact that the majority of countries do not recognize same-sex marriage and many same-sex couples face prosecution in their own countries.

The shift was detailed in a memo circulated at the United Nations’ headquarters in New York last month. It gives the same-sex partners of foreign diplomats and United Nations workers until the end of the year to get married or leave the country.