A hydraulic circuit having a compensation and energy recovery function, comprising: • a distribution module for distributing hydraulic fluid which includes at least one spool for actuating at least one hydraulic utility, for example a hydraulic actuator, wherein: ∘ the spool is configured to define a main delivery branch, and a discharge branch in the distribution module, • a supply unit configured so as to supply a flow rate of operating fluid at a working pressure to the main delivery branch, for activating the hydraulic utility; • a three-way compensated adjustment device connected, at a first channel thereof, to the discharge branch of the spool and connected to discharge at a second channel; o the three-way compensated adjustment device further comprises a first piloting line and a second piloting line configured so that through the first piloting line a Maximum Load Sensing (PLSmax) piloting signal acts on a first side of the adjustment device, which signal is characteristic of the pressure of the hydraulic utility if there is a single section, or of the hydraulic utility at higher pressure if there is more than one hydraulic utility, and so that through the second piloting line a Local Load Sensing (PLSloc) piloting signal acts on a second side of the three-way compensated adjustment device, which signal is characteristic of a local pressure of the operating fluid supplied to said hydraulic utility by the supply unit, the hydraulic circuit further comprises: • an energy recovery device connected to a third channel of the three-way compensated adjustment device; • a selection section configured in such a way as to receive a signal at reduced pressure; characterized in that, the selection section is further configured in such a way as to send said signal at reduced pressure (Prid) to said first piloting line in such a way as to activate said three-way compensated adjustment device for switching towards a position in which the fluid coming from the discharge branch is sent to said energy recovery device connected through said third channel. • a distribution module for distributing hydraulic fluid which includes at least one spool for actuating at least one hydraulic utility, for example a hydraulic actuator, wherein: ∘ the spool is configured to define a main delivery branch, and a discharge branch in the distribution module, ∘ the spool is configured to define a main delivery branch, and a discharge branch in the distribution module, • a supply unit configured so as to supply a flow rate of operating fluid at a working pressure to the main delivery branch, for activating the hydraulic utility; • a three-way compensated adjustment device connected, at a first channel thereof, to the discharge branch of the spool and connected to discharge at a second channel; o the three-way compensated adjustment device further comprises a first piloting line and a second piloting line configured so that through the first piloting line a Maximum Load Sensing (PLSmax) piloting signal acts on a first side of the adjustment device, which signal is characteristic of the pressure of the hydraulic utility if there is a single section, or of the hydraulic utility at higher pressure if there is more than one hydraulic utility, and so that through the second piloting line a Local Load Sensing (PLSloc) piloting signal acts on a second side of the three-way compensated adjustment device, which signal is characteristic of a local pressure of the operating fluid supplied to said hydraulic utility by the supply unit, o the three-way compensated adjustment device further comprises a first piloting line and a second piloting line configured so that through the first piloting line a Maximum Load Sensing (PLSmax) piloting signal acts on a first side of the adjustment device, which signal is characteristic of the pressure of the hydraulic utility if there is a single section, or of the hydraulic utility at higher pressure if there is more than one hydraulic utility, and so that through the second piloting line a Local Load Sensing (PLSloc) piloting signal acts on a second side of the three-way compensated adjustment device, which signal is characteristic of a local pressure of the operating fluid supplied to said hydraulic utility by the supply unit, the hydraulic circuit further comprises: • an energy recovery device connected to a third channel of the three-way compensated adjustment device; • a selection section configured in such a way as to receive a signal at reduced pressure; • an energy recovery device connected to a third channel of the three-way compensated adjustment device; • a selection section configured in such a way as to receive a signal at reduced pressure; characterized in that, the selection section is further configured in such a way as to send said signal at reduced pressure (Prid) to said first piloting line in such a way as to activate said three-way compensated adjustment device for switching towards a position in which the fluid coming from the discharge branch is sent to said energy recovery device connected through said third channel.