Disclosed are a food composition prepared by co-culturing Pediococcus acidilactici with bacillus and a method for preparing the same. The food composition contains bacteriocin, thus improving stability and lifespan of foods. More specifically, disclosed are Doenjang or Cheonggukjang produced by the method, and a method for producing the same.