Foetal cells are detectable in women decades postpartum, a state termed foetal microchimerism. The interplay between these semi-allogeneic foetal cells and the mother could be affected by genetic mismatches in the HLA loci. Here, we relate HLA allele and molecular mismatch values to the presence and quantity of foetal microchimerism in the maternal circulation during pregnancy and postpartum. A total of 76 pregnant women were included, of which 59 were followed up 1-8 years postpartum. Maternal and foetal DNA was genotyped for HLA class I and II loci. Foetal cells in maternal buffy coat were detected by qPCR, targeting inherited paternal alleles. Antibody-verified eplet mismatch and Predicted Indirectly Recognisable HLA Epitopes (PIRCHE) scores were calculated to quantify foetal-maternal histocompatibility from the mother's perspective. Circulating foetal cells were detected in 50.0% (38/76) of women during pregnancy, and 25.4% (15/59) postpartum. During pregnancy, HLA class II antibody-verified eplet mismatch load and PIRCHE scores correlated negatively with the presence and quantity of foetal cells in the maternal circulation. Postpartum, HLA class I allele mismatches correlated negatively with foetal microchimerism presence, while HLA class II allele mismatches, HLA class I and II antibody-verified eplet mismatch load, and PIRCHE-I and PIRCHE-II scores correlated negatively with both microchimerism presence and quantity. The correlation between mismatch parameters aimed at evaluating the risk of humoral and T cell-mediated allorecognition and foetal microchimerism was more evident postpartum than during pregnancy. The observed predictive effect of foetal-maternal histocompatibility on foetal microchimerism suggests that circulating foetal cells are subject to clearance by the maternal immune system. We propose that allorecognition of foetal cells in the maternal circulation and tissues influences any long-term effect that foetal microchimerism may have on maternal health.