The invention pertains to a method for preparing a semi-hard or hard cheese, wherein a cheese of the semi-hard or hard type is formed, which, after brining, is subjected to ripening for a period of at least 4 weeks, said ripening comprising or consisting of foil ripening, and wherein pressure is continuously exerted on at least the top and bottom surface of said cheese during at least said foil ripening, preferably until said cheese is cooled.