During his long imprisonment he finished and printed his history of the Catalan Revolt, and also wrote and published a volume of Spanish verses and some religious treatises, and composed in Portuguese a volume of homely philosophy, the "Carta de Guia de Casados" and a Memorial in his own defence to the king, which Herculano considered perhaps the most eloquent piece of reasoning in the language.