The invention belongs to the technical field of ships, and particularly relates to a power generation device utilizing ship oscillation energy. The power generation device comprises a power generator,a motor fixing shell, a sliding rail, a rack, a
pinion, a motor supporting frame, an outer
machine frame, a sliding block, a first spring cross rod, an oscillating frame, a spring, a balancing weightand a
machine base. When a ship sails in the stormy
waves, the device is used for converting the huge up-and-down oscillation energy of the ship into the
reciprocating motion of the rack, then the rack drives the gear of the power generator for power generation, meanwhile, the device can increase the energy of ship oscillation by adjusting the
mass of the balancing weight, then the
generating capacity of the device is increased, so that the device has the advantages of being large in
generating capacity, simple in structure, low in manufacturing cost and small in occupied area, the continuouspower supply during sailing of the ship is achieved, moreover, due to fact that the space on the ship is large, a plurality of sets of devices can be arranged on the ship, so that the operation costof the ship is saved, and remarkable
economic benefits are achieved.