Using ethnographic and historical approaches, this article examines unplanned, peri-urban settlements on Dar es Salaam's northern and western fringe, where urban farming is central to many residents’ household economy. Contrasting with conventional models of African urban migration, these new districts were established by a vanguard of educated urban professionals, utilizing farming as an economic diversification strategy. Despite disjunctures arising through decolonization and implementation of state socialism in the 1960s and 1970s, this peri-urban vanguard not only engaged in agricultural activities reminiscent of regions on the borderlands of Tanzania, but also contributed to the reproduction of configurations of socio-economic inequality characteristic of other kinds of urban communities. With critical infrastructural improvements and a pool of urban labourers supporting their endeavours, these districts attracted additional, economically influential urban in-migrants following capitalist reforms following the implementation of the Zanzibar Declaration in 1991.