The frq gene, essential for circadian clock function, is shown to differ from most other genes in Neurospora by exhibiting non-optimal codon usage; by contrast, optimization of codon usage is unexpectedly found to affect the structure and function of the coded protein, subsequently impairing circadian feedback loops. Many biological processes are rhythmically regulated on a daily, or circadian, cycle. Highly expressed genes, such as those regulating the circadian rhythm, normally contain optimal codons, to allow efficient expression. Two studies, from the laboratories of Carl Johnson and Yi Liu, now find that central circadian proteins in cyanobacteria and Neurospora unexpectedly use non-optimal codons, and that optimizing their codes causes a change in an adaptive response in cyanobacteria, and compromises function of the Neurospora clock. These works highlight an unanticipated selection against optimal codon usage. Codon-usage bias has been observed in almost all genomes and is thought to result from selection for efficient and accurate translation of highly expressed genes1,2,3. Codon usage is also implicated in the control of transcription, splicing and RNA structure4,5,6. Many genes exhibit little codon-usage bias, which is thought to reflect a lack of selection for messenger RNA translation. Alternatively, however, non-optimal codon usage may be of biological importance. The rhythmic expression and the proper function of the Neurospora FREQUENCY (FRQ) protein are essential for circadian clock function. Here we show that, unlike most genes in Neurospora, frq exhibits non-optimal codon usage across its entire open reading frame. Optimization of frq codon usage abolishes both overt and molecular circadian rhythms. Codon optimization not only increases FRQ levels but, unexpectedly, also results in conformational changes in FRQ protein, altered FRQ phosphorylation profile and stability, and impaired functions in the circadian feedback loops. These results indicate that non-optimal codon usage of frq is essential for its circadian clock function. Our study provides an example of how non-optimal codon usage functions to regulate protein expression and to achieve optimal protein structure and function.