You are married to a US Citizen and you filed your petition for a green card, but now you are going through a divorce, can you keep your green card?
Divorce Prior to Green Card
If you have filed your application for a green card, but have not yet attended your green card interview, and you or your spouse has since filed for divorce, it is going to be nearly impossible for your green card application to continue without the U.S. Citizen spouse.
If the divorce is filed or is happening before the adjudication of your green card, there are very few options for the foreign spouse to obtain a green card.
As long as the foreign spouse is in legal status, they may be able to remain in the United States by changing their status to a nonimmigrant visa category. In this case, the foreign spouse may only remain in the U.S. temporarily, until the duration of the visa is up.