In a rare move, the Justice Ministry has revoked a deportation order for a gay Taiwanese man who remained in Japan illegally after overstaying his visa, apparently giving consideration to his longtime partnership with a Japanese national.

The man had been suing the government over the denial of special permission to reside in Japan. He has now decided to withdraw the suit.

Last week, the ministry's Immigration Bureau granted the man a one-year resident visa after the Tokyo District Court suggested that it review the order, his lawyers revealed Friday. Japan does not have a specific visa status for LGBT foreign nationals in relationships with Japanese people.