Extracellular capsules are the outermost layer of some cells and are prevalent across Bacteria. They protect the cell against both abiotic and biotic stresses such as bacteriophages and the host immune system. Yet, it is unclear if capsules contribute to fitness in the absence of external aggressions, in spite of the cost of production. Here, we enquire if there are conditions favouring the presence of the capsule in Klebsiella, where it is a major virulence factor. We allowed independent populations of 19 different strains, representing six different capsule serotypes, to evolve for twenty generations in different growth media. We observed that capsules were maintained in nutrient-poor media but were selected against in nutrient-rich media. Competitions with capsule mutants in nine different strains showed that capsules provide ca 20% of fitness advantage in nutrient poor-conditions. This is not caused by differences in maximal growth rate, nor death rates. We showed that most capsulated populations reached higher yields. We further characterized how growth conditions affected the role of the capsule during pathogenensis and whether this is conserved across Klebsiella strains. Our data reveals that the environment and the serotype strongly influences major virulence traits such as hypermucoviscosity and biofilm formation. Our data shows that the capsule can be selected for in situations lacking abiotic, but also biotic stresses. This raises the possibility that the forces selecting for the presence of a capsule are different from the ones selecting for rapid serotype variation.IMPORTANCEBacterial capsules are a wide-spread virulence factor that limits efficacy of antimicrobial therapy. Whereas most studies focus on the role of the capsule in pathogenesis, very few have addressed the conditions under which the capsule is primarily selected for. Here, we show that small changes in growth media have a strong impact in the maintenance of the capsule and the fitness advantage they confer. Our results suggest that the forces selecting for the capsule may be different from those selecting for its composition diversification, namely the immune system and phage predation. Our results further support that the role of the capsule in virulence may be a by-product of adaptation, hinting that there may be other functionalities yet to be discovered for it.