You can apply for a green card immediately after getting married if your spouse is a U.S. citizen. However, if you married a Green Card holder, you might need to wait for a visa number to become available, which may take several years depending on the preference category your spouse falls into.