A 7-nt motif (the trans-splicing motif or TSM) was previously shown to be necessary and sufficient to direct trans-splicing of transgenic mRNAs in transgenic Brugia malayi embryos. Insertion of the TSM into two genes lacking a TSM homologue resulted in trans-splicing of transgenic mRNAs from one transgene but not the other, suggesting that local sequence context might affect TSM function. To test this hypothesis, constructs inserting the TSM into different positions of two B. malayi genes were tested for their ability to support trans-splicing of transgenic mRNAs. Transgenic mRNAs derived from constructs in which the insertion of the TSM did not result in a perturbation of the local predicted secondary structure were trans-spliced, while those in which the TSM perturbed the local secondary structure were not. These data suggest that local secondary structure plays a role in the ability of the TSM to direct trans-splicing.