If you have a conditional marriage-based green card, you’ll need to stay married for at least two years to remove the conditions and get a permanent 10-year green card. This involves jointly filing Form I-751 with your spouse during the 90-day window before your conditional green card expires. USCIS will evaluate whether your marriage is still genuine before granting you a permanent green card.
If you divorce before the two-year mark, you may still be able to remove the conditions by filing a waiver, but you’ll need to provide evidence that your marriage was entered in good faith. If you have already received your 10-year green card, a divorce will not impact your green card status, though it may affect your timeline to apply for U.S. citizenship.