Maternal infection during pregnancy increases risk for neurodevelopmental disorders and reduced stress resilience in offspring, but the mechanisms are not fully understood. We hypothesized that piglets born from gilts infected with a respiratory virus during late gestation would exhibit aberrant microglia activity, cognitive deficits and reduced sociability. Pregnant gilts were inoculated with porcine reproductive and respiratory syndrome virus (PRRSV; 5×105 TCID50 of live PRRSV) or saline at gestational day 76. Gilts infected with PRRSV exhibited fever (p