The present invention is directed to the synthesis of elemicin and its isomeric form, and their use in topical analgesic formulations, including for dental and veterinary use. Various compositions include gels, films, dressings, cavity filling gels, having analgesic and/or antifungal properties.