Yes, you can still apply for citizenship if you were married to a U.S. citizen and obtained your Green Card based on that marriage. Generally, you will have to wait until after five years of permanent residency, but in some circumstances, you may be eligible to apply after three years, even if you are no longer married to a U.S. citizen spouse.