From thiophene and cis-hexahydrophthalic anhydride the corresponding gamma-oxocarboxylic acid was obtained by the Friedel-Crafts reaction, which resulted in new heterocycles with acetic anhydride, Lawesson reagent or urea by intramolecular cyclization. Saturated N-heteroaryl isoindoles were prepared directly by the fusion reaction of heteroaromatic amines with the oxocarboxylic acid.