The sentence you gave is almost correct, but it can be improved slightly for clarity and grammar. Here's the original sentence:
To hide from forest fires and predators, echidnas dig into the ground leaving only spines showing.
Let's look at it step-by-step:
- Introductory phrase: "To hide from forest fires and predators," is fine. It correctly introduces the reason why echidnas dig into the ground.
- Main clause: "echidnas dig into the ground" is also correct.
- Participial phrase: "leaving only spines showing." This phrase modifies how echidnas dig into the ground. It is grammatically correct, but to make it clearer, you could add a comma before "leaving" to separate the two parts.
So, the improved sentence would be:
"To hide from forest fires and predators, echidnas dig into the ground, leaving only spines showing."
This comma helps the reader better understand that "leaving only spines showing" describes the result of digging into the ground.