1.
grave; burial pit
A hole dug in the ground for burying a coffin or remains.
2.
one's own undoing; self-inflicted ruin
Used figuratively in the expression 墓穴を掘る (to dig one's own grave), meaning to cause one's own downfall through careless actions or words.