Tagamet (cimetidine) is a histamine H2-receptor antagonist. Chemically it is N?-cyano-N-methyl N'-[2-[[(5-methyl-1H-imidazol-4-yl)methyl]thio]-ethyl]-guanidine.