An offshore power generating assembly comprising a floating unit (1), at least one generator (3), a base (4) connected to the seabed below the floating unit and a number of cylinders (5) comprising a pair of cylinder spindles (10). The cylinders are connected to the floating unit and the base, so that fluid is compressed by the cylinders during tidal changes. The compressed fluid provide power to the at least one generator (3).