Skeletal and smooth muscle can mutually transdifferentiate, but little molecular insight exists as to how each muscle program may be subverted to the other. The myogenic basic helix-loop-helix transcription factors MyoD and myogenin (Myog) direct the development of skeletal muscle and are thought to be dominant over the program of smooth muscle cell (SMC) differentiation. Myocardin (Myocd) is a serum response factor (SRF) coactivator that promotes SMC differentiation through transcriptional stimulation of SRF-dependent smooth muscle genes. Here we show by lineage-tracing studies that Myocd is expressed transiently in skeletal muscle progenitor cells of the somite, and a majority of skeletal muscle is derived from Myocd-expressing cell lineages. However, rather than activating skeletal muscle-specific gene expression, Myocd functions as a transcriptional repressor of Myog, inhibiting skeletal muscle differentiation while activating SMC-specific genes. This repressor function of Myocd is complex, involving histone deacetylase 5 silencing of the Myog promoter and Myocd's physical contact with MyoD, which undermines MyoD DNA binding and transcriptional synergy with MEF2. These results reveal a previously unrecognized role for Myocd in repressing the skeletal muscle differentiation program and suggest that this transcriptional coregulator acts as a bifunctional molecular switch for the smooth versus skeletal muscle phenotypes.