Definition
to prepare defenses for yourself against enemy attack in a wartime scenario, such as by creating trenches.
They decided to dig in to protect themselves against the approaching storm.
Faced with the enemy's onslaught, they rapidly dug in to strengthen their defenses.
The soldiers dug in before the battle to gain cover.