Conventional ecological models[1-4] show that complexity destabilises food webs, suggesting that food webs should have neither the large number of species nor the large number of interactions. However, in nature the opposite appears to be the case. More recent work[5] shows that the introduction of nonlinearity and weak interactions can enhance stability, and the observation of weak interactions in real systems is taken as justification for this. Here we show that if the interactions between species is allowed to evolve, such stabilising feedbacks and weak interactions emerge naturally. Moreover, we show that trophic levels[4] also emerge spontaneously from the evolutionary approach, and the efficiency of the unperturbed ecosystem increases...