A gamma-pyrone derivative, comenic acid, activates the opioid-like receptor-mediated signaling pathway that modulates the NaV1.8 channels in the primary sensory neuron membrane. These channels are responsible for generation of the nociceptive signal; gamma-pyrones can therefore have a great therapeutic potential as analgesics, and this effect deserves a deeper understanding. The novelty of our approach to the design of a medicinal substance is based on a combination of the data obtained on living neurons using very sensitive physiological methods and the results of quantum-chemical calculations. This approach allows to correlate the molecular structure of gamma-pyrones with their ability to evoke a physiological response of the neuron. Comenic acid can bind two calcium cations. One of them is chelated by the carbonyl and the hydroxyl functional groups, while another one forms the salt bond with the carboxylate anion. Calcium-bound gamma-pyrones are fundamentally different in electrostatic properties from the free gamma-pyrone molecules. These two calcium ions are the key elements involved in ligand-receptor binding. It is very likely ion-ionic interactions between these cations and anionic functional groups of the opioid-like receptor that activate the latter. The calculated intercationic distance of 9.5 Å is a structural criterion for effective ligand-receptor binding of calcium-bound gamma-pyrones.