Vegetative and reproductive phases alternate regularly during sympodial growth in tomato. In wild-type 'indeterminate' plants, inflorescences are separated by three vegetative nodes. In 'determinate' plants homozygous for the recessive allele of the SELF-PRUNING (SP) gene, sympodial segments develop progressively fewer nodes until the shoot is terminated by two consecutive inflorescences. We show here that the SP gene is the tomato ortholog of CENTRORADIALIS and TERMINAL FLOWER1, genes which maintain the indeterminate state of inflorescence meristems in Antirrhinum and Arabidopsis respectively. The sp mutation results in a single amino acid change (P76L), and the mutant phenotype is mimicked by overexpressing the SP antisense RNA. Ectopic and overexpression of the SP and CEN transgenes in tomato rescues the 'indeterminate' phenotype, conditions the replacement of flowers by leaves in the inflorescence and suppresses the transition of the vegetative apex to a reproductive shoot. The SELF-PRUNING gene is expressed in shoot apices and leaves from very early stages, and later in inflorescence and floral primordia as well. This expression pattern is similar to that displayed by the tomato ortholog LEAFY and FLORICAULA. Comparison of the sympodial, day-neutral shoot system of tomato and the monopodial, photoperiod-sensitive systems of Arabidopsis and Antirrhinum suggests that flowering genes that are required for the processing of floral induction signals in Arabidopsis and Antirrhinum are required in tomato to regulate the alternation between vegetative and reproductive cycles in sympodial meristems.