The reaction between 16-dehydropregnenolone acetate and 2-aminobenzimidazole was investigated as an easy way to obtain pyrimidinobenzimidazole derivative. The reaction mechanism based on experimental evidences as well as DFT calculations was proposed. D-homo ketone byproduct was formed in α-ketol type rearrangement. The strong solvent effect on the condensation process was revealed.