His support of democratic reforms led to his imprisonment in in Veracruz, where he gained enough knowledge from reading medical textbooks to qualify him to practice medicine upon his release in . He also taught himself to read English during his imprisonment.