We have investigated the cis-regulatory network that mediates temporal gene expression during organogenesis. Previous studies demonstrated that the organ selector gene pha-4/FoxA is critical to establish the onset of transcription of Caenorhabditis elegans foregut (pharynx) genes. Here, we discover additional cis-regulatory elements that function in combination with PHA-4. We use a computational approach to identify candidate cis-regulatory sites for genes activated either early or late during pharyngeal development. Analysis of natural or synthetic promoters reveals that six of these sites function in vivo. The newly discovered temporal elements, together with predicted PHA-4 sites, account for the onset of expression of roughly half of the pharyngeal genes examined. Moreover, combinations of temporal elements and PHA-4 sites can be used in genome-wide searches to predict pharyngeal genes, with more than 85% accuracy for their onset of expression. These findings suggest a regulatory code for temporal gene expression during foregut development and provide a means to predict gene expression patterns based solely on genomic sequence.