A latching device for a security gate of the type used at the entrance of subterranean garages for apartments or condominiums or secured storage rental areas is disclosed which is mechanically actuated by operation of the motor drive system to open the security gate. The latching device effectively prevents the security gate from being forced open, and in one embodiment includes a mechanism for preventing manual disengagement of the latch from attempts to force the gate laterally until the latch disengages. The latching device of the present invention is substantially cheaper than other security gate locking devices, as well as being highly reliable and wear-resistant.