Social networks and geographic structures of communities are important predictors of infectious disease transmission. To examine their joint effects on diarrheal disease and how these effects might develop, the authors analyzed social network and geographic data from northern coastal Ecuador and examined associations with diarrhea prevalence. Between July 2003 and May 2005, 113 cases of diarrhea were identified in nine communities. Concurrently, sociometric surveys were conducted, and households were mapped with geographic information systems. Spatial distribution metrics of households within communities and of communities with respect to roads were developed that predict social network degree in casual contact ("contact") and food-sharing ("food") networks. The mean degree is 25-40% lower in communities with versus without road access and 66-94% lower in communities with lowest versus highest housing density. Associations with diarrheal disease were found for housing density (comparing dense with dispersed communities: risk ratio = 3.3, 95% confidence interval (CI): 1.1, 10.0) and social connectedness (comparing lowest with highest degree communities: risk ratio = 3.4, 95% CI: 1.1, 10.1 in the contact network and risk ratio = 4.9, 95% CI: 1.1, 21.9 in the food network). Some of these differences may be related to more new residents, lower housing density, and less social connectedness in road communities.