After obtaining U.S. lawful permanent residence (a green card) based on family, the U.S. government expects you to actually live in the United States. In fact, it will consider your green card to have been abandoned if you make your home in another country, most often (but not always) evidenced by how long you spend there. (For further discussion of abandonment of U.S. residence, see How to Travel Outside the U.S. With a Green Card.)
Given those legal restrictions, what happens if, even after fully intending to live in the U.S., your life circumstances change and you end up outside the U.S. for an extended time then wish to return? Perhaps your U.S. citizen spouse was transferred abroad for work, and you decided to basically go and take your chances that your green card would indeed be abandoned, but your spouse gets transferred back again after a year.
This isn't as unusual a situation as you might imagine. Figuring out what to do next involves:
After a year or more spent outside the U.S., the U.S. government might be quick to conclude that you intended to abandon your U.S. residence. There are exceptions, however.
Some green card holders take steps to avoid a determination of abandonment of residence by obtaining what's known as a reentry permit before their departure. (This is done by filing Form I-131, Application for Travel Document, with U.S. Citizenship and Immigration Services, or USCIS. See Don't Lose Your Green Card Due to Long Absence From U.S.: Get a Reentry Permit for details.) Reentry permits are good for up to two years at a time, and can be applied for more than once. Of course, we're assuming you didn't obtain one of these, but it's worth mentioning, just in case you did and forgot.
The U.S. government could use its discretion to find that you didn't really mean to abandon your residence. It's more likely to do this in cases where unexpected circumstances arose that were beyond your control (such as a health problem or the death of a family member) during what was meant to be a short trip. Again, we started with the supposition that your departure from the U.S. was due to something more straightforward and predictable, such as a job transfer.
Nevertheless, if unexpected circumstances played a part in your long stay abroad, you might be able to apply for a returning resident visa (as described on the Returning Resident Visas page of the State Department's website).
Another possibility is to go directly to a U.S. border or other point of entry and ask the Customs and Border Protection (CBP) officer to admit you as a returning resident, based on "good cause." (You'd need to prepare USCIS Form I-193, Application for Waiver of Passport and/or Visa.)
Still, the above measures might not work, or you might not want to take your chances on flying all the way to the U.S. only to be turned away again.
Assuming the same family relationship exists through which you got your U.S. green card in the first place, your U.S. relative could start the process over from you, by filing an I-130 petition. By now, you're familiar with the process, all of which you would need to repeat.
Your application might raise questions with U.S. immigration authorities, however. They would locate your old files and wonder why you're applying for a green card when you already appear to have one. For that reason, some immigration lawyers recommend, just to make sure the record is clear, that you file Form I-407, Abandonment of Lawful Permanent Residence, before submitting the new I-130.
This is a sufficiently complex area of the law that your best bet would be to consult with an experienced immigration attorney, for help analyzing whether you did, in fact, abandon your U.S. residence and then creating a strategy for what to do next.