Best Pharmacy To Buy Generic Bactrim with Discount. Bactrim (Sulfamethoxazole and Trimethoprim) is used for treating infections caused by certain bacteria. It works by killing sensitive bacteria. Bactrim also marketed as: Co-trimoxazole, Septra, Septrin, Sulfatrim, Syraprim.