Any feature or characteristic of a formation which will allow the accumulation, but not the escape, of oil or gas. See structural trap and stratigraphic trap.