Congo red works by binding to amyloid fibrils, which are protein aggregates that form in certain pathological conditions, such as Alzheimer's disease and amyloidosis. The dye binds specifically to the beta-pleated sheet structure of amyloid fibrils, making them visible under a microscope. When illuminated with polarized light, the stained amyloid deposits exhibit a characteristic apple-green birefringence.