The social environment individuals are exposed to during ontogeny shapes social skills and social competence in group-living animals. Consequently, social deprivation has serious effects on behaviour and development in animals but little is known about its impact on cooperation. In this study, we examined the effect of social environment on cooperative predator inspection. Predator inspection behaviour is a complex behaviour, which is present in a variety of shoaling fish species. Often, two fish leave the safety of the group and inspect a potentially dangerous predator in order to gather information about the current predation risk. As predator inspection is highly risky, it is prone to conflicts and cheating. However, cooperation among individuals may reduce the individual predation risk. We investigated this complex social behaviour in juveniles of the cichlid fish Pelvicachromis taeniatus that were reared in two different social environments throughout development. Fish reared in a group inspected more often than isolation-reared fish and were more likely to cooperate, i.e. they conducted conjoint inspection of a predator. By contrast, isolation-reared fish were more likely to perform a single inspection without a companion. These results suggest an impairment of cooperative behaviour in isolation-reared fish most probably due to lack of social experience and resulting in lowered social skills needed in coordinated behaviour.