Marx saw the state as the creator of the proletariat through forced expropriation
Evidence
In Marx’s historical view, the “genesis of the industrial capitalist” was inextricably tied to the development of the state. It was by means of the state that the proletariat came into being, transformed as producers from peasants to wage laborers, … Thus were the agricultural people, first forcibly expropriated from the soil, driven from their homes, turned into vagabonds, and then whipped, branded, tortured by laws grotesquely terrible, into the discipline necessary for the wage system. — Cedric J. Robinson, Black Marxism_ The Making of the Black…, 342