Phthalimide can be prepared by heating distilled ammonia with phthalic anhydride, which yields 95–97 per cent. Additionally, it may be treated by adding ammonium carbonate or urea to cure the anhydride. Only it can be provided by o-xylene ammoxidation.