The present invention relates to compounds useful for the treatment or prevention of bacteria infections. These compounds have formula (I) The invention also provides processes for making the compounds described herein. Furthermore, the present invention provides a composition comprising the compounds described herein, and a pharmaceutically acceptable carrier, adjuvant, or vehicle. The present invention also provides methods of treating or preventing bacteria infection in a subject, comprising administering to the subject an effective amount of the compound or the composition described herein.