The present invention relates to methods of inhibiting bacterial IMPDH comprising administering compounds of formula I:or pharmaceutically acceptable salts thereof. The present invention also relates to pharmaceutically acceptable compositions comprising said compounds. These compounds, and compositions thereof, are useful in treating bacterial infections.