The present invention relates to an agricultural machine (1) for working the soil or for sowing seeds, comprising a towed frame (2) and working members (3) distributed over a longitudinal bar (4) in a plurality of sections, said longitudinal bar (4) having at least two primary beams (4a, 4b) extending substantially transversely to the direction of forward movement (A) in a working configuration. The agricultural machine is characterised in that a secondary beam (10a, 10b) is connected to each primary beam (4a, 4b) by means of two devices having connecting rods (11), said secondary beams (10a, 10b) supporting said working members (3), and in that each secondary beam (10a, 10b) rests on the floor by means of two bearing wheels (12) and is capable of moving freely during work in order to follow the profile of the terrain.