This is an extract from Frederick Engels Socialism: Utopian and Scientific III [Historical Materialism]
When, at last, it becomes the real representative of the whole of society, it renders itself unnecessary. As soon as there is no longer any social class to be held in subjection; as soon as class rule, and the individual struggle for existence based upon our present anarchy in production, with the collisions and excesses arising from these, are removed, nothing more remains to be repressed, and a special repressive force, a State, is no longer necessary. The first act by virtue of which the State really constitutes itself the representative of the whole of society — the taking possession of the means of production in the name of society — this is, at the same time, its last independent act as a State. State interference in social relations becomes, in one domain after another, superfluous, and then dies out of itself; the government of persons is replaced by the administration of things, and by the conduct of processes of production. The State is not "abolished". It dies out. This gives the measure of the value of the phrase: "a free State", both as to its justifiable use at times by agitators, and as to its ultimate scientific inefficiency; and also of the demands of the so-called anarchists for the abolition of the State out of hand.
Since the historical appearance of the capitalist mode of production, the appropriation by society of all the means of production has often been dreamed of, more or less vaguely, by individuals, as well as by sects, as the ideal of the future. But it could become possible, could become a historical necessity, only when the actual conditions for its realization were there. Like every other social advance, it becomes practicable, not by men understanding that the existence of classes is in contradiction to justice, equality, etc., not by the mere willingness to abolish these classes, but by virtue of certain new economic conditions. The separation of society into an exploiting and an exploited class, a ruling and an oppressed class, was the necessary consequences of the deficient and restricted development of production in former times. So long as the total social labor only yields a produce which but slightly exceeds that barely necessary for the existence of all; so long, therefore, as labor engages all or almost all the time of the great majority of the members of society — so long, of necessity, this society is divided into classes. Side by side with the great majority, exclusively bond slaves to labor, arises a class freed from directly productive labor, which looks after the general affairs of society: the direction of labor, State business, law, science, art, etc. It is, therefore, the law of division of labor that lies at the basis of the division into classes. But this does not prevent this division into classes from being carried out by means of violence and robbery, trickery and fraud. it does not prevent the ruling class, once having the upper hand, from consolidating its power at the expense of the working-class, from turning its social leadership into an intensified exploitation of the masses.
But if, upon this showing, division into classes has a certain historical justification, it has this only for a given period, only under given social conditions. It was based upon the insufficiency of production. It will be swept away by the complete development of modern productive forces. And, in fact, the abolition of classes in society presupposes a degree of historical evolution at which the existence, not simply of this or that particular ruling class, but of any ruling class at all, and, therefore, the existence of class distinction itself, has become a obsolete anachronism. It presupposes, therefore, the development of production carried out to a degree at which appropriation of the means of production and of the products, and, with this, of political domination, of the monopoly of culture, and of intellectual leadership by a particular class of society, has become not only superfluous but economically, politically, intellectually, a hindrance to development.
This point is now reached. Their political and intellectual bankruptcy is scarcely any longer a secret to the bourgeoisie themselves. Their economic bankruptcy recurs regularly every 10 years. In every crisis, society is suffocated beneath the weight of its own productive forces and products, which it cannot use, and stands helpless, face-to-face with the absurd contradiction that the producers have nothing to consume, because consumers are wanting. The expansive force of the means of production burst the bonds that the capitalist mode of production had imposed upon them. Their deliverance from these bonds is the one precondition for an unbroken, constantly-accelerated development of the productive forces, and therewith for a practically unlimited increase of production itself. Nor is this all. The socialized appropriation of the means of production does away, not only with the present artificial restrictions upon production, but also with the positive waste and devastation of productive forces and products that are at the present time the inevitable concomitants of production, and that reach their height in the crises. Further, it sets free for the community at large a mass of means of production and of products, by doing away with the senseless extravagance of the ruling classes of today, and their political representatives. The possibility of securing for every member of society, by means of socialized production, an existence not only fully sufficient materially, and becoming day-by-day more full, but an existence guaranteeing to all the free development and exercise of their physical and mental faculties — this possibility is now, for the first time, here, but it is here.
With the seizing of the means of production by society, production of commodities is done away with, and, simultaneously, the mastery of the product over the producer. Anarchy in social production is replaced by systematic, definite organization. The struggle for individual existence disappears. Then, for the first time, man, in a certain sense, is finally marked off from the rest of the animal kingdom, and emerges from mere animal conditions of existence into really human ones. The whole sphere of the conditions of life which environ man, and which have hitherto ruled man, now comes under the dominion and control of man, who for the first time becomes the real, conscious lord of nature, because he has now become master of his own social organization. The laws of his own social action, hitherto standing face-to-face with man as laws of Nature foreign to, and dominating him, will then be used with full understanding, and so mastered by him. Man's own social organization, hitherto confronting him as a necessity imposed by Nature and history, now becomes the result of his own free action. The extraneous objective forces that have, hitherto, governed history,pass under the control of man himself. Only from that time will man himself, more and more consciously, make his own history — only from that time will the social causes set in movement by him have, in the main and in a constantly growing measure, the results intended by him. It is the ascent of man from the kingdom of necessity to the kingdom of freedom.