In 1878 he returned to Cuba under a general amnesty and worked for a law firm, but he conspired against the Spanish authorities and again was banished to Spain in September 1879. He fled exile in Spain and came first to France and then to the United States. Marti went back to Miami where he lived from 1881 to 1895.