Terrain masking
Terrain masking refers to a method of avoiding detection by radar, typically early warning radars or surface-to-air missiles. Essentially it consists of having the aircraft fly close enough to the ground that local terrain like hills and valleys block the line of sight between the aircraft and the radar, rendering the aircraft invisible.
It is important as a means of avoiding active radar by positioning the aircraft so there is natural earth hiding it from the radio waves sent from the radar system. For instance, suppose a radar transmitter is installed on a hill to monitor an area. If there was a sufficiently deep nearby valley, an aircraft flying near the bottom would not be detected because the radar would be absorbed by the top of the valley and not reach the aircraft. This concept works even on flat terrain, although only at longer ranges, due to the curvature of the earth.
Terrain masking
Terrain masking, most commonly used in aerial combat, is the act of flying at extremely low elevations upon normally hilly or mountainous terrain to minimize exposure time to anti-air weaponry.
Although this sounds counter-intuitive (an aircraft flying at lower altitudes will be easier to hear and see by those on the ground, not to mention the difficulty of navigating the aircraft through an otherwise complex course), if the terrain is hilly, the aircraft can simply maneuver around a hill and the anti-air weaponry will lose sight with the aircraft. If the aircraft was flying at a much higher altitude, the advantage of getting out of the weapon's line of sight could never be obtained.
"Terrain masking" is a means of avoiding active radar by positioning the aircraft so that there is natural earth hiding it from the radio waves sent by the radar system. This technique is used by military pilots to fly to their target stealthily, using the topography to mask their approach from detecting radar microwaves.