When he became a victim of the French conquest of 1830, he sent a petition to King Louis Philippe to complain about the atrocities committed against him by the French Army. Furthermore, Khodja wrote the book "Le Miroir" in which he denounced the encroachments by French soldiers in Algiers, thus becoming the first essayist on this subject; it was translated into French and printed in Paris in 1833.