Ayala's career was cut short in 1843 by accident. In that year was published an issue of "Iris", a publication which contained among others a paper by Basilio Puoti. This paper scandalized a princess because of his licentious character and she took the newspaper his father Ferdinand II because he intervened. Withholding the publication to become more aware of it, the kingalso read a paper by Ayala, who under the guise of a historical narrative concealed apology of Joachim Murat and his attempt to regain the Kingdom. Irritated and mindful of the warnings of the deposed captain Nocerino, Ferdinand II summoned Carlo Filangieri and this time attacked him and to notify that would remove the teacher. Attempts defense by Filangieri came to no avail, especially as its recommendation to Ayala to make amends and ask forgiveness of the king did not produce effect, as he preferred to resign on Aug. 3, 1843.