Resumen: Relying on longitudinal microdata from a Spanish rural region between 1750 and 1950 (almost 35,000 life courses), this article provides evidence that discriminatory practices affected sex‐specific mortality during infancy and childhood. Although it is likely that families also discriminated against girls during the first year of life, female excess mortality was especially visible in the 1–5 age group. While breastfeeding seems to have temporarily mitigated the effects of gender discrimination, sex‐specific mortality rates behaved very differently once children were weaned. Parents, therefore, prioritized boys during infancy and childhood in the allocation of food and/or care in order to enhance their survival chances. Idioma: Inglés DOI: 10.1111/padr.12406 Año: 2021 Publicado en: POPULATION AND DEVELOPMENT REVIEW 47, 3 (2021), 665-689 ISSN: 0098-7921 Factor impacto JCR: 10.515 (2021) Categ. JCR: SOCIOLOGY rank: 3 / 150 = 0.02 (2021) - Q1 - T1 Categ. JCR: DEMOGRAPHY rank: 1 / 30 = 0.033 (2021) - Q1 - T1 Factor impacto CITESCORE: 4.2 - Social Sciences (Q1)