The invention provides a ball-rolling type ocean wave generator. The ball-rolling type ocean wave generator comprises a floating boat, hinges are arranged at the two ends of the floating boat, and a balance plate, a steel ball, a steel ball rolling groove, gear racks, gear rack guide rails, a driving gear, one-way ratchet wheels, variable gears, flywheels, generator bodies, a limiting pillar, balance plate supports, shaft supports and a bottom plate are arranged in the floating boat. The floating boat is a sealed structure body, and the two generator bodies are arranged inside the floating boat. The floating boat can be fixed to the seabed or a ship or other floating objects through one rope. Along with waving of ocean waves, the steel ball rolls along the steel ball rolling groove, and the balance plate rotates accordingly to drive the gear racks to move vertically so that the driving gear can rotate to drive the generator bodies to generate power. The ball-rolling type ocean wave generator has the advantages of being simple in structure, reliable in performance, high in efficiency, free of pollution, easy to arrange and popularize, small in investment, rapid in reward and the like.