Post-traumatic stress disorder (PTSD) is a severe psychiatric disorder associated with abnormally elevated neuroinflammatory responses. Suppression of neuroinflammation is considered to be effective in ameliorating PTSD-like behaviors in rodents. Since pre-stimulation of microglia prior to stress exposure can prevent neuroinflammation, we hypothesized that pre-stimulation of microglia may prevent PTSD in animals. The results show that a single injection of a classical immune stimulant, lipopolysaccharide (LPS), at 50, 100 or 500, but not 10 μg/kg, one day before stress exposure, prevented the anxiety- and fear-like behaviors induced by modified single prolonged stress (mSPS). The time-dependent analysis shows that a single injection of LPS (100 μg/kg) either one or five, but not ten, days before stress prevented mSPS-induced anxiety- and fear-like behaviors. A second low-dose LPS injection 10 days after the first injection or a repeated LPS injection (4 × ) 10 days before stress induced tolerance to mSPS. Mechanistic studies show that a single injection of LPS one day before stress stimulation prevented mSPS-induced increases in levels of interleukin-1β (IL-1β), tumor necrosis factor-α (TNF-α), and IL-6 mRNA in the hippocampus and medial prefrontal cortex. Inhibition of microglia by pretreatment with minocycline or depletion of microglia by PLX3397 abolished the preventive effect of low-dose LPS pre-injection on mSPS-induced anxiety- and fear-like behavior and neuroinflammatory responses. These results suggest that pre-stimulation of microglia may prevent the development of PTSD-like behaviors by attenuating the development of neuroinflammatory responses. This could help to develop new strategies to prevent the damaging effects of harmful stress on the brain.