N-(4-Carboxyphenyl)-4-acetoxyphthalimide was prepared from 4-hydroxyphthalic acid, 4-aminobenzoic acid and acetic anhydride. From this monomer a new homopoly(ester imide) was prepared by thermal condensation at 350°C in an inert reaction medium. By condensation with 4-acetoxybenzoic acid at 350°C a series of copoly(ester imide)s with variable composition was prepared. Differential scanning calorimetry measurements indicated a reversible first-order phase transition at temperatures between 340 and 390°C. Wide-angle X-ray scattering measurements revealed that the orthorhombic modification II (known from pure poly(4-hydroxybenzoate)) is predominant at low temperatures, whereas at high temperature a pseudohexagonal chain packing (modification III) is preferred. The isomeric copoly(ester imide)s derived from trimellitic anhydride, 4-aminophenol and 4-hydroxybenzoic acid possess quite different properties. The pseudohexagonal chain packing is adopted even at room temperature, and thus no phase transition occurs upon heating.