Disclosed are a derivative of homoserine lactone represented by formula I, and a preparation method and use thereof. The compound has a bacterial quorum-sensing regulatory effect, and can be used for prevention and/or treatment of a disease caused by a bacterial infection.