Methylene blue has been used as an antiseptic and antibacterial agent. It has demonstrated effectiveness against a variety of bacteria, including antibiotic-resistant strains.