locking pin 125 to the upward unlocked position but is not strong enough to prevent the permanent magnet 905 from pulling the locking pin 125 downward to a locking position when the gate is closed and the magnet housing 220 is immediately below the locking pin 125 preferably the only opening in the hollow cavity 120 accessible by water is a bottom facing hole where the locking pin 125 exits the hollow cavity 120 the main body assembly 600 also preferably includes a cover 515 over the rod 115 to keep out water and dust a cam lock 520 which is key operated to preclude upward movement of the pull knob 105 by rotation of a l type locking part 140 into a notch in the rod 115 so as to prevent opening the magnetic gate latch 100 and the gate a lock housing 525 and a lock housing back cover 555 to cover the cam lock 520 a magnet cover 545 to close in the permanent magnet 905 within the magnet housing 220 and a gap adjuster 530 for adjusting the fit of the magnet housing 220 in the catcher 205 the secondary assembly 800 includes the permanent magnet 905 within a magnet housing 220 that engages the catcher 205 as shown in fig2 when the gate closes such that when the magnet housing 220 strikes against the catcher 205 the locking pin 125 is drawn out of the main body assembly 600 by the permanent magnet 905.