First, you need to open the gate.
Once the gate is open, you need to get rid of the water in the boat.