A lawyer for a Dallas man trying to divorce the man he married in Massachusetts told a Texas appeals court Wednesday that his client is entitled to a divorce because he had a valid marriage.

But the Texas attorney general’s office argued before the three-judge 5th Texas Court of Appeals panel that the marriage isn’t recognized by Texas, so they cannot get a divorce. Jimmy Blacklock, an assistant Texas solicitor general, said the men’s union can only be voided.