The reaction of azoles and benzazoles with dihalomethanes and dihaloethanes was performed in the absence of solvent. This method provides a general procedure for the synthesis of bisazolylmethanes and ethanes. No solvent was used during the reaction and, when possible, during the work-up.