"挖掘以破坏基础" can be translated into English as "excavate to undermine the foundation" or "dig with the intent of damaging the foundation".
The first version is more concise and commonly used, while the second version explicitly states the intention, which might be useful in contexts where clarity about the purpose is crucial.