Ecology as a universal constraint