The aim of the present study was to compare endometrial gene expression profiles in a group of beef heifers yielding viable or retarded embryos on Day 7 after oestrus as a means of potentially explaining differences in embryo survival rates. Heifers were classified as either: (1) viable, when the embryo collected on Day 7 after oestrus was at the correct developmental stage (i.e. morula/early blastocyst); or (2) retarded, when the embryo was arrested at the 2-16-cell stage. The focus of the present study was on genes that were associated with either the pro- or anti-inflammatory immune response. Endometrial gene expression was determined using quantitative real-time polymerase chain reaction analysis. Expression of the β-defensin (DEFB1), interferon (IFN)-α (IFNA), IFN-γ (IFNG), interleukin (IL)-6 (IL6), IL-10 (IL10), forkhead box P3 (FOXP3) and natural cytotoxicity triggering receptor 1 (NCR1) genes was lower in endometria from viable than retarded heifers. Expression of the nuclear factor of kappa light polypeptide gene enhancer in B cells 1 (NKFB1), transforming growth factor (TGF)-β (TGFB), IFN-γ-inducible protein 16 (IFI16) and IL-21 (IL21) genes was higher in viable than retarded heifers. We propose that small disturbances in the expression of immune genes in the endometrium on Day 7 after oestrus can have detrimental effects on embryo survival.