Soil fertility gradients develop on smallholder farms due to preferential allocation of inputs. A multi-location on-farm trial was conducted in Meru South, Central Kenya whose overall aim was to test minimum tillage and crop-residue retention practices in socio-ecological niches across heterogeneous smallholder farms. We identified three soil fertility classes together with the farmers, namely: good, medium, and poor. In each soil fertility class, two tillage (minimum or regular) and two crop residue (removed or retained) practices were tested for four consecutive seasons. Maize (Zea mays L.) grain yields in the good fields were above 2.5 Mg ha(-1) across cropping seasons and cumulated yields were not influenced by tillage or crop residue management. The grain yields in the medium fields ranged between 1.3 and 5.4 Mg ha(-1) and were greater with crop residue retention. In the poor fields, grain yield was