Common Chimpanzees are broadly omnivorous. They rely heavily on ripe fruits and young leaves, with additional consumption of stems, buds, bark, pith, seeds, and resins. This diet is supplemented by a variety of insects, small vertebrates, and eggs. Soil is sometimes consumed, especially that associated with termite mounds, presumably for the minerals it contains. Diets vary seasonally, as different foods are available at different times of year.
They utilize a great diversity of habitat types. Although they are typically thought of as living in tropical rain forests, they are also found in forest-savanna mosaic environments, as well as in mountain forests at elevations up to 2,750 m. Some populations are known to inhabit primarily savanna habitat. Most Pan troglodytes inhabit the tropical forests of central Africa. There are three recognized subspecies of Common Chimpanzee.
(Taken from : http://www.mirrorservice.org/sites/brainmuseum.org/specimens/primates/chimp/index.html)