If you adjusted your status based on a marriage to a U.S. citizen before your second marriage anniversary, then your green card came with certain conditions, meaning that your green card expires in 2 years instead of 10. This also means you'll have to remove the conditions within 90 days of that expiration date by filing Form I-751 jointly with your U.S. citizen spouse to receive the 10-year permanent resident card.
But what happens if you and your spouse divorce before your conditional green card expire? Can you still remove the conditions and get the 10-year card? The answer is “yes.”