The invention relates to a liquid bacterial fertilizer obtained by fermenting garlic straws by using enterobacter ludwigii and a preparation method thereof. The liquid bacterial fertilizer is preparedfrom garlic straw, potassium dihydrogen phosphate, soybean meal, corn flour, glucose, yeast powder, water and enterobacter ludwigii (LB) fermentation liquid, wherein the enterobacter ludwigii is Enterobacter ludwigii B424; the preservation number of the enterobacter ludwigii is CGMCC No.14915; the preservation institution of the enterobacter ludwigii is China General Microbiological Culture Collection Center; the preservation address is No. 3, No. 1 Courtyard, West Beichen Road, Chaoyang District, Beijing, China; the preservation date is November 16, 2017. Through the produced disease-resistant multifunctional liquid bacterial fertilizer capable of accelerating growth of crops, the application of chemical fertilizers and pesticides in farmlands is reduced; the farmland ecological environment is improved; the liquid bacterial fertilizer has great economic, social and ecological benefits.