In this study, novel derivatives based on 6-methyluracil and condensed uracil were synthesized, namely, 2,4-quinazoline-2,4-dione with ω-(ortho-nitrilebenzylethylamino) alkyl chains at the N atoms of the pyrimidine ring. In this series of synthesized compounds, the polymethylene chains were varied from having tetra- to hexamethylene chains, and secondary NH, tertiary ethylamino, and quaternary ammonium groups were introduced into the chains. The molecular modeling of the compounds indicated that they could function as dual binding site acetylcholinesterase inhibitors, binding to both the peripheral anionic site and active site. The data from in vitro experiments show that the most active compounds exhibit affinity toward acetylcholinesterase within a nanomolar range, with selectivity for acetylcholinesterase over butyrylcholinesterase reaching four orders of magnitude. In vivo biological assays demonstrated the potency of these compounds in the treatment of memory impairment using an animal model of Alzheimer disease.