Context-dependent interactions between pathogens and a mutualist affect pathogen fitness and mutualist benefits to hosts.