Methylene blue has been used to treat septic shock and anaphylaxis. It can also increase blood pressure in certain situations, helping the body manage the shock effects of a serious medical event.