Fruit fly pests in north-eastern Brazil include several species of the genus Anastrepha and the Mediterranean fruit fly Ceratitis capitata (Wiedemann). The most common species are Anastrepha zenildae Zucchi, the South American fruit fly Anastrepha fraterculus (Wiedemann), the West Indian fruit fly Anastrepha obliqua (Macquart) and Anastrepha sororcula Zucchi. In this study, attempts were made to mass-rear A. zenildae and A. fraterculus. The objective was to adapt local populations to laboratory conditions and develop mass-rearing systems for further utilization in integrated area-wide control programmes. Small colonies initially fed on guava fruits were developed in the laboratory. Adults were fed a diet made of brown sugar (60%), hydrolysed corn protein (26%), brewer's yeast (5%) and honey (9%). Adult diets with other combinations of ingredients were also tested. The colonies of A. zenildae and A. fraterculus achieved mating and egg hatch rates of 32 and 39%, respectively. The best diets for adults, resulting in good egg hatch, were as follows: diet B – brown sugar (60%), hydrolysed corn protein (26%), brewer's yeast (5%) and honey (5%); diet C – hydrolysed corn protein and white sugar (1:3); and diet D – soybean protein and white sugar (1:3). The best larval diet was based on 18% sugarcane bagasse and 9% protein. Adult mortality during the first 15 days was still high, over 50%. Adult recovery from pupae was over 70%. The best oviposition substrate was an agar-coated glass bottle. Mating compatibility was highest for A. fraterculus from the state of São Paulo. Mating between A. fraterculus and A. zenildae yielded no viable eggs.