A hydraulic machine has a gear wheel (2) with outwardly extending teeth and a gear ring (4) with inwardly extending teeth formed by rollers each of which is supported in a pocket (8) in the gear ring, and pressurized spaces are formed between the gear wheel and the inwardly extending teeth.