The present invention relates to a transdermal patch comprising a pharmaceutical formulation, the formulation comprising ropivacaine or an opioid, a pharmaceutically-acceptable adhesive and optionally one or more excipients selected from the group consisting of carrier oils, penetration enhancers and hydrophilic materials. The present invention also relates to methods of preparation of such a pharmaceutical formulation, as well as the use of such a transdermal patch in the treatment of pain (e.g. nociceptive and/or neuropathic pain).