Agricultural machine and method of folding an agricultural machine The invention relates to an agricultural machine (1) comprising two side units (4) and a frame (3) which extends in a longitudinal direction (D1) and is provided with two wheels (7), each side unit (4) being pivotally mounted relative to the frame (3) via a respective longitudinal articulation (11) about a folding axis (12) parallel to a median plane (M) of the frame ( 3), each side unit (4) comprising a group of tools (9) connected to the frame (3) by a respective arm (10) and being able to occupy a working position in which it is supported on the ground (S) and in which the length (L) of the respective tool group (9) extends transversely to the longitudinal direction (D1), each side unit (4) can also occupy a transport position in which it is remote from the ground (S ), and in which the length (L) and the width (B) of the respective tool group are substantially parallel s at the median plane (M). The machine (1) comprises at least one rocker (13) articulated with the frame (3) around at least one tilting axis (14) oriented transversely to the longitudinal direction (D1), and, in the transport position of the side units (4), each group of tools (9) is closer to the midplane (M) than the respective arm (10). Figure to be published with the abstract: Fig. 3 Machine agricole et procédé de pliage d’une machine agricole L’invention concerne une machine (1) agricole comportant deux unités latérales (4) et un châssis (3) qui s’étend dans une direction longitudinale (D1) et est muni de deux roues (7), chaque unité latérale (4) étant montée pivotante par rapport au châssis (3) via une articulation longitudinale (11) respective autour d’un axe de pliage (12) parallèle à un plan médian (M) du châssis (3), chaque unité latérale (4) comportant un groupe d’outils (9) relié au châssis (3) par un bras (10) respectif et pouvant occuper une position de travail dans laquelle elle prend appui sur le sol (S)