If you obtained your green card through marriage, you will need to remove conditions after two years, and obtain your ten year green card. This process of renewing your green card is referred to as "removal of conditions". You may file to remove conditions no sooner than 90 days before your green card expires. This calculator will easily help you determine the soonest filing date.
If you try to send your removal of conditions petition sooner than this earliest filing date, USCIS will deny your petition.