Novel compounds of the series of N-phenyl-N-(4-piperidinyl)amides having a (4,5-dihydro-4-R-5-oxo-1H-tetrazol-1-yl)alkyl or (4,5-dihydro-4-R-5-thioxo-1H-tetrazol-1-yl)alkyl substituent group in the 1-position of the piperidine nucleus, said compounds being useful as analgesic agents.