A machine for harvesting fruit, which comprises a belt conveyor (14) provided with a first movable frame (18) extending between an inlet end (15) and a first connection end (19), and a second movable frame (20) extending between an outlet end (16) and a second connection end (21) rotatably constrained to the first connection end (19) of the first movable frame (18). The machine further comprises movement means (17) operatively connected to the belt conveyor (14) and arranged to move it between a first operative configuration, in which the outlet end (16) of the belt conveyor (14) is arranged in the internal space (8) of the collection box (7) at the bottom wall (9) of the collection box (7) itself, and a second operative configuration, in which the outlet end (16) of the belt conveyor (14) is arranged at the access opening (12) of said collection box (7). The aforesaid movement means (17) are arranged to move the second movable frame (20) so as to prevent the latter from knocking into the lateral wall (10) of the collection box (7).