For over a thousand years, generations of Balinese farmers have gradually transformed the landscape of their island, clearing forests, digging irrigation canals, and terracing hillsides to enable themselves and their descendants to grow irrigated rice. Paralleling the physical system of terraces and irrigation works, the Balinese have also constructed intricate networks of shrines and temples dedicated to agricultural deities. Ecological modeling shows that water temple networks can have macroscopic effects on the topography of the adaptive landscape, and may be representative of a class of complex adaptive systems that have evolved to manage agroecosystems.