A method of controlling the activity of a biologically active compound. The method concerns an oligonucleotide-based compound, comprising a hairpin-forming oligonucleotide, an effector moiety physically associated with the oligonucleotide, where the effector moiety possesses a biological activity, and a regulating moiety physically associated with the oligonucleotide, where the regulating moiety controls the biological activity of the effector moiety by interacting with the effector moiety. The oligonucleotide can assume a hairpin configuration, where the effector and regulating moieties interact, or an open configuration, where the effector and regulating moieties fail to interact. Depending on the nature of the effector and regulating moieties, either configuration can result in the expression of the biological activity of the effector moiety