Landscapes in ecology have a profound influence on the adaption and evolution of competing populations for resources. We are interested in how altruistic populations survive in the presence of selfish individuals in a non-stirred, closed and complex nutrient landscape. Well-stirred (landscape-free) but closed environments have a depressing future when selfish individuals arise in a population, a fate known as the tragedy of the Commons. Over-exploitation of a well-stirred communal habitat by selfish individuals which do not follow rules of communal self-regulation ends up in the elimination (extinction) of both the original altruistic inhabitants and the selfish population. In the context of bacterial population, the Commons tragedy that occurs is the consumption of limited resources by the individuals, resulting in metabolic stressing of the bacteria and growth advantages to be gained by defection from a ``social contract" of altruistic cooperation. There is no avoidance of this tragedy and the collapse of an original altruistic wild-type population by an emergent selfish population in a well-stirred but closed environment is inevitable. However, there is a fundamental difference between resource exploitation in a well-stirred homogenous commons and in a heterogenous landscape of nutrients which is not stirred. We show here using a non-stirred nanofabricated habitat landscape that altruists and selfish bacteria can in fact coexist, that they can maintain phenotype diversity and avoid the tragedy of the Commons. This emergent spatial segregation of competing populations under stress greatly changes, we believe, our perception of the true sophistication of bacterial response to stress and competition, and has broad implications for the adaptive strategies of higher organisms under stress in complex environments