Different substituents were introduced in positions 2 and 6 of 2,6 diaminopyridine in order to obtain new heterocyclic compounds. A new series of aza pyridine, imidazopyridine, benzodiazepine, indole, pyrimidine, and benzimidazole heterocyclic derivatives were synthesized in good yields. The anticancer activities of some of the new compounds were evaluated against liver cancer cell line HEPG2. Compounds 3, 4, 10, 11, 12, and 17 showed the highest activity when compared to 5-flurouracil (5-FU) and doxorubicin (DOX) chemotherapy.