He spent time in Cuba. In New Orleans he plotted against Antonio López de Santa Anna who had overthrown him. Juan  Alvarez launched a coup.  Juarez to hurried to protect Mexico but Alvarez forces captured the capital. Alvarez made himself  president and Juarez a minister of Justice .