A total synthesis of racemic and optically active terrein (trans-4,5-dihydroxy-3-[(E)-1-propenyl]-2-cyclopenten-1-one).