A method of inhibiting bacterial conjugation or bacterial horizontal gene transfer, the method comprising contacting bacteria with an effective amount of a bile acid or a bile salt, wherein said bile acid comprises lithocholic acid or glycocholic acid or salt thereof at a concentration of 1-5% (w/v), wherein said bacteria are resistant to said bile acid or said bile salt, and wherein said effective amount does not affect viability of said bacteria, and wherein when said bile acid or bile salt is comprised in a composition comprising antibiotics, said antibiotics are selected from the group consisting of penicillin, clavulanate acid, trimethoprim-sulfamethoxazole, fluoroquinolone, cephalosporin, macrolide, azalide, sulfonamide, ampicillin, tetracycline, chloramphenicol, minocycline, doxycycline, vancomycin, bacitracin, kanamycin, neomycin, gentamycin, erythromycin, spectinomycin, zeomycin and streptomycin, thereby inhibiting the bacterial conjugation or bacterial horizontal gene transfer.