In warfare, a booby trap is an antipersonnel device, such as a landmine or grenade, placed in building or in a noncombat area that has a psychological draw for enemy soldiers.

For example, during World War II, scales in warehouses and factories were rigged with explosives. Allied soldiers securing an area would be tempted to step upon the scale to compare their weight with that of their compatriots, and would thus perish.

During the Vietnam War, motorcycles were rigged with explosives and abandoned. Soldiers would be tempted to ride the motorcycle and thus trigger the explosives. As well, Viet Cong soldiers would rig Rubber Band Grenades and place them in huts that americans would likely torch. Another popular booby trap is the Grenade in a Can trap. This involves a primed grenade in a container and a string attached. The Viet Cong soldiers primarily used these on doors and attached them to tripwires on jungle paths.

During the Al-Aqsa Intifada, Palestinian militias used booby traps widely. The largest use of booby traps was in Jenin during Operation Defensive Shield were more than 15,000 explosive device were planted. They were planted in trash cans on the street, under children beds inside house and even inside of a bird cage (with the bird still in it).

The Palestinian fighters had made their own preparations. Booby traps had been laid in the streets of both the camp and the town, ready to be triggered if an Israeli foot or vehicle snagged a tripwire. Some of the bombs were huge – as much as 250 lbs. of explosives, compared with the 25 lbs. a typical suicide bomber uses. On Day 2 of the battle, when the town had been secured but the fight in the camp was just beginning, a huge Caterpillar D-9 bulldozer rolled along a three-quarter-mile stretch of the main street to clear booby traps. An Israeli engineering-corps officer logged 124 separate explosions set off by the vehicle. In the camp, the explosive charges were even more densely packed, and tunnels had been dug between houses so that Palestinian fighters could move around without exposing themselves on the street. (1)

According to Palestinian militants who survived the battle in Jenin this tactic have failed because of the Israeli usage of the armored Caterpillar D9 bulldozer to clear out explosives and detonate booby traps. Further more, some of the admited to Times that some of the booby traps they've planted killed Palestinian civilian who accidentally went on them.

See also combat engineer