Provided are anti-rolling water tanks with side ports and an anti-rolling method thereof. One or more pairs of the anti-rolling water tanks are arranged on the left side and the right side of the bow and / or the stern; each water tank comprises a compartment, the right side port and the left side port, the top of each compartment is provided with a compartment roof, and a water tank exhaust pipeline and a water tank drainage pipeline are arranged on the upper portion of each compartment roof; the left side ports of the port and the right side ports of the starboard are arranged above the hull waterline, the right side ports and the left side ports are connected with hull sides through rotating shafts, the right side ports and the left side ports can be opened or closed freely through the rotating shafts, after the right side ports and the left side ports are closed, the water tanks have the water-resisting property, and the water tank exhaust pipelines and the water tank drainage pipelines are arranged on the upper portions of the water tanks; the hull is internally provided with a rotor, the rotating shafts, a driving shaft, a control shaft, a pressure sensor, a controller and an angular speed gyroscope, wherein the rotating shafts are driven by the rotor to rotate, the rotor drives the control shaft through the driving shaft, the driving shaft is perpendicularly meshed with the control shaft, the pressure sensor is located below the portion, near the corresponding rotating shaft, of the water tank of the side of the hull, the angular speed gyroscope is connected with the controller, and the rotor, the pressure sensor and the angular speed gyroscope are all connected with the controller.