Prison Break star Wentworth Miller has come out as a gay man via a letter to a Russian film festival director.

The actor was recently invited to attend the St. Petersburg International Film Festival, but declined the invitation because of Russia's highly-criticized anti-gay laws.

The 41-year-old wrote an open letter to festival director Maria Averbakh, saying he'd love to attend, but because of the way gays are treated there he has no future plans to travel there.

"Thank you for your kind invitation. As someone who has enjoyed visiting Russia in the past and can also claim a degree of Russian ancestry, it would make me happy to say yes," the actor wrote in the letter, which was published on gay rights organization GLAAD's official site Wednesday.

"However, as a gay man, I must decline. I am deeply troubled by the current attitude toward and treatment of gay men and women by the Russian government," he added. "The situation is in no way acceptable, and I cannot in good conscience participate in a celebratory occasion hosted by a country where people like myself are being systematically denied their basic right to live and love openly."

Miller said because of the laws he was given no choice in the matter, but if "circumstances improve" he's open to returning to the nation in the future.

The new Russian law was implemented last month and has been met with heavy backlash in the U.S., with stars like Lady Gaga lashing out and calls for a boycott of the upcoming Winter Olympics being held in the city of Sochi on the shores of the Black Sea.