A previously unrecognized mechanism through which large ribonucleoprotein (megaRNP) granules exit the nucleus is by budding through the nuclear envelope (NE). This mechanism is akin to the nuclear egress of herpes-type viruses and is essential for proper synapse development. However, the molecular machinery required to remodel the NE during this process is unknown. Here, we identify Torsin, an AAA-ATPase that in humans is linked to dystonia, as a major mediator of primary megaRNP envelopment during NE budding. In torsin mutants, megaRNPs accumulate within the perinuclear space, and the messenger RNAs contained within fail to reach synaptic sites, preventing normal synaptic protein synthesis and thus proper synaptic bouton development. These studies begin to establish the cellular machinery underlying the exit of megaRNPs via budding, offer an explanation for the "nuclear blebbing" phenotype found in dystonia models, and provide an important link between Torsin and the synaptic phenotypes observed in dystonia.