We found that E. coli can be a key driver of selection for a high-fitness antibiotic resistant K. pneumoniae strain in complex communities. Higher-order interactions with other community members could enhance or decrease the selective advantage of the resistant mutant.