Alkylating agents that display strong selectivity for opiate receptor types delta or mu were prepared by appropriate modification of the structures of the strong analgesics fentanyl, etonitazene, and endoethenotetrahydrooripavine. The availability of these substances should facilitate studies of the structural basis of receptor specificity and of the physiologic roles of these receptors.