A set of fifteen triterpenoid pyrazines and pyridines was prepared from parent triterpenoid 3-oxoderivatives (betulonic acid, dihydrobetulonic acid, oleanonic acid, moronic acid, ursonic acid, heterobetulonic acid, and allobetulone). Cytotoxicity of all compounds was tested in eight cancer and two non-cancer cell lines. Evaluation of the structure-activity relationships revealed that the triterpenoid core determined whether the final molecule is active or not, while the heterocycle is able to increase the activity and modulate the specificity. Five compounds (1b, 1c, 2b, 2c, and 8) were found to be preferentially and highly cytotoxic (IC