👉 Sulfanilamide, also known as sulfamethoxazole (SAM), is a drug used to treat bacterial infections such as pneumonia and urinary tract infections. It works by interfering with the function of bacteria in the body's cells, leading to cell death and reducing inflammation and pain. Sulfanilamide can be taken as a medication or administered via injection.