The stochastic Ricker population model was used to investigate the generation and maintenance of genetic diversity in a bacterial population grown in a spatially structured environment. In particular, we showed that Escherichia coli undergoes dramatic genetic diversification when grown as a biofilm. Using a novel biofilm entrapment method, we retrieved 64 clones from each of six different depths of a mature biofilm, and after subculturing for ϳ30 generations, we measured their growth kinetics in three different media. We fit a stochastic Ricker population growth model to the recorded growth curves. The growth kinetics of clonal lineages descendant from cells sampled at different biofilm depths varied as a function of both the depth in the biofilm and the growth medium used. We concluded that differences in the growth dynamics of clones were heritable and arose during adaptive evolution under local conditions in a spatially heterogeneous environment. We postulate that under nutrient-limited conditions, selective sweeps would be protracted and would be insufficient to purge less-fit variants, a phenomenon that would allow the coexistence of genetically distinct clones. These findings contribute to the current understanding of biofilm ecology and complement current hypotheses for the maintenance and generation of microbial diversity in spatially structured environments.