Natural, agricultural and human populations are structured, with a proportion of interactions occurring locally or within social groups rather than at random. This within-population spatial and social structure is important to the evolution of parasites but little attention has been paid to how spatial structure affects the evolution of host resistance, and as a consequence the coevolutionary outcome. We examine the evolution of resistance across a range of mixing patterns using an approximate mathematical model and stochastic simulations. As reproduction becomes increasingly local, hosts are always selected to increase resistance. More localized transmission also selects for higher resistance, but only if reproduction is also predominantly...