Anthraquinones, a widely distributed class of aromatic natural products, are produced by a type II polyketidesynthase system in the Gram-negative bacterium Photorhabdus luminescens. Heterologous expression oftheantABCDEFGHI anthraquinone biosynthetic gene cluster in Escherichia coli identified AntI as an unusual lyase, catalysing terminal polyketide shortening prior to formation of the third aromatic ring. Functional in vitro and in vivo analysis of AntI using X-ray crystallography, structure-based mutagenesis, and molecular simulations revealed that AntI converts a defined octaketide to the tricyclic anthraquinone ring via retro-Claisen and Dieckmann reactions. Thus, AntI catalyses a so far unobserved multistep reaction in this PKS system.