We have investigated the ram-pressure stripping of disk galaxies in clusters at various redshifts and in cluster progenitors ; the clusters are formed via a hierarchical clustering scenario. We consider a radially infalling galaxy whose initial position and velocity are given by a spherical collapse model of structure formation. Moreover, since observations show that the intracluster medium (ICM) of nearby clusters is nongravitationally heated, we study the e †ect of the nongravitational heating on the ram-pressure stripping. For a given redshift, we Ðnd that ram-pressure stripping has more inÑuence on galaxies in more massive clusters. On the other hand, for a given mass, it has more inÑuence on galaxies in clusters at higher redshifts. In particular, we predict that in rich clusters at most of the galaxies are a †ected z Z 1, by ram-pressure stripping. While the nongravitational heating signiÐcantly reduces the inÑuence of rampressure stripping on galaxies in clusters with a mass smaller than (1È5) ] 1013 it does not a †ect M _ , the inÑuence in richer clusters. If the ICM is heated nongravitationally at z ? 1, ram-pressure stripping does not occur at z D 1È2 in the progenitors of clusters observed at because the heat makes 0 [ z [ 0.5 the ICM fraction of the cluster progenitors small. On the other hand, if the ICM is heated nongravitationally at z D 0 for the Ðrst time, the ram-pressure stripping occurs even at z D 3. We compare the results with the observations of galaxies in clusters at various redshifts.