Post‐traumatic stress disorder (PTSD) is characterized by depression/anxiety and memory failure, primarily fear memory. According to the reports, neuroinflammation and synaptic plasticity can play a role in the neurophysiological mechanisms underlying PTSD. Bromodomain‐containing protein 4 (Brd4) intriguingly affects regulating of inflammatory responses and learning and memory. This study aimed to explore the effect of inhibiting Brd4 on depression/anxiety‐like behaviors, spatial and fear memory, and underlying mechanisms in a model of PTSD. Inescapable foot shocks (IFS) with a sound reminder in 6 days were used to induce PTSD‐like behaviors which were tested using contextual and cue fear tests, sucrose preference test, open‐field test, elevated plus maze test, and Y‐maze test. Meanwhile, the Brd4 inhibitor JQ1 was used as an intervention. The results found that IFS induced PTSD‐like behaviors and indicated obvious Brd4 expression in microglia of the prefrontal cortex (PFC), hippocampus, and amygdala, pro‐inflammatory cytokines over‐expression, microglial activation, and nuclear factor‐kappa B over‐expression in PFC and hippocampus but not in amygdala. Meanwhile, the alterations of immediate early genes (IEGs) were found in PFC, hippocampus, and amygdala. Besides, dendritic spine density was reduced in PFC and hippocampus but was elevated in amygdala of rats with IFS. In addition, treatment with JQ1 significantly reduced freezing time in the contextual and cue fear test, reversed the behavioral impairment, decreased the elevated neuroinflammation, and normalized the alteration in IEGs and dendritic spine densities. The results suggested that Brd4 was involved in IFS‐induced PTSD‐like behaviors through regulating neuroinflammation, dynamics of IEGs, and synaptic plasticity.