окопаться

Verb

 * 1)  to dig in to dig trenches for protection against attack