In search of new dual-acting histamine H/sigma-1 receptor ligands, we designed a series of compounds structurally based on highly active ligands previously studied and described by our team. However, we kept in mind that within the previous series, a pair of closely related compounds, and , differing only in the piperazine/piperidine moiety in the structural core showed a significantly different affinity at sigma-1 receptors (σRs). Therefore, we first focused on an in-depth analysis of the protonation states of piperazine and piperidine derivatives in the studied compounds. In a series of 16 new ligands, mainly based on the piperidine core, we selected three lead structures (, , and ) for further biological evaluation. Compound showed a broad spectrum of analgesic activity in both nociceptive and neuropathic pain models based on the novel molecular mechanism.