Spatial patterns generated by simultaneous cooperation and exploitation favour the evolution of altruism.