one has to live in the United States as a lawful permanent resident for at least five years before you qualify for citizenship.
but if you obtained your green card through an application for political asylum, the period is reduced to four years. If green card is through marriage to a U.S. citizen, and remain married and cohabitating with the citizen, the waiting period is three years.