Acriflavine works by intercalating into DNA, which inhibits the growth and replication of various microorganisms. This makes it effective against a wide range of bacterial and fungal pathogens. Its ability to penetrate cell walls and membranes allows it to disrupt microbial activity efficiently.