An agricultural machine comprising a chassis for supporting an open shell (2a), which partially delimits a chamber (3) for accommodating and compressing agricultural products, of the type of grass, wheat, maize, hay, forage, and the like, for the formation of a bale (A) to be subsequently discharged onto the ground. The shell (2a) is associated with a closing apparatus (2b), which can move from a first configuration, in which it cooperates with the shell (2a) for the delimitation and closure of the chamber (3), to at least one second configuration, in which it allows the discharging of the bale (A) onto the ground, and vice versa. The closing apparatus (2b) comprises a first door (7), which is articulated to the shell (2a) about a first pivoting axis (B). Furthermore, the closing apparatus (2b) comprises a second door (8), which is articulated to the shell (2a) about a second pivoting axis (C) and is substantially parallel to the first axis (B). In the first configuration both of the doors (7, 8) cooperate with the shell (2a) for the delimitation and closure of the chamber (3), in the second configuration both of the doors (7, 8) are rotated, in order to allow the discharge of the bale (A) onto the ground.