Terminal restriction fragment length polymorphism and quantitative PCR showed that the cecal microbiota of chicks up to the age of 21 days was dominated by representatives of the orders Enterobacteriales, Clostridiales, and Lactobacillales. Salmonella enterica serovar Enteritidis infection caused the greatest changes in the gut microbiota when 1-day-old chicks were infected, compared with the infection of 4-and 16-day-old chicks.