Abstract: Although certain microbial lipids are toxins, the structural features important for cytotoxicity remain unknown. Increased functional understanding is essential for developing therapeutics against toxic microbial lipids. Group B Streptococci (GBS) are bacteria associated with preterm births, stillbirths, and severe infections in neonates and adults. GBS produce a pigmented, cytotoxic lipid, known as granadaene. Despite its importance to all manifestations of GBS disease, studies towards understanding granadaene’s toxic activity are hindered by its instability and insolubility in purified form. Here, we report the synthesis and screening of lipid derivatives inspired by granadaene, which reveal features central to toxin function, namely the polyene chain length. Furthermore, we show that vaccination with a non-toxic synthetic analog confers the production of antibodies that inhibit granadaene-mediated hemolysis ex vivo and diminish GBS infection in vivo. This work provides unique structural and functional insight into granadaene and a strategy to mitigate GBS infection, which will be relevant to other toxic lipids encoded by human pathogens.