Swing gates and sliding gates, for example ... For the most secure lock, try a bolt gate latch or you can add a deadbolt or ...