A subgroup-closed formation F is called a formation with Shemetkov condition if every minimal non-F-group is either a group of prime order or a Schmidt group. In this paper, we give a necessary and sufficient condition for formations with Shemetkov condition. From this, some known important results follow.