The rural-urban gap in infant mortality rates is explained by using a new decomposition method that permits identification of the contribution of unobserved heterogeneity at the household and the community level. Using Demographic and Health Survey data for six Francophone countries in Central and West sub-Saharan Africa, we find that differences in the distributions of factors that determine mortality-not differences in their effects-explain almost the entire gap. Higher infant mortality rates in rural areas mainly derive from the rural disadvantage in household characteristics, both observed and unobserved, which explain two-thirds of the gap. Among the observed characteristics, environmental factors-a safe source of drinking water, electricity, and quality of housing materials-are the most important contributors. Community characteristics explain less than onequarter of the gap, with about two-thirds of this coming from community unobserved heterogeneity and one-third from the existence of a health facility within the community. The effect of disadvantageous environmental conditions-such as limited electricity and water supply-derives both from a lack of community-level infrastructure and from the inability of some households to exploit it when available. Policy needs to operate at both the community and household levels to correct such deficiencies.