One-pot condensation reaction of ethyl acetoacetate, various substituted benzaldehydes and anilines in the presence of TiCl2·2H2O yields highly functionalized tetrahydropiperidines. Atom economy, efficiency, and short reaction times are the advantages of the method, which is carried out under mild conditions using easily accessible and inexpensive chemicals. The antimicrobial activity of the synthesized products was evaluated against three Gram-positive and three Gram-negative bacteria, a yeast and a fungus strain using disc diffusion and minimum inhibitory concentration methods.