Isoindol-1,3-dione and isoindol-1-one derivatives with high binding affinity to beta-amyloid fibrils.