Synthesis of highly functionalized 2,4-diaminoquinazolines as anticancer and anti-HIV agents.