This question already has an answer here:
I read these books in the late 60s or 70s. There were two books in the series. I don't remember the author or titles.
There is a war between humans and aliens. A human ship crashes on a unexplored planet. They struggle to survive and live in a bunch of caves. One of the politicians refuses to work and is finally executed for hoarding. There is native life on the planet. A wolf-like species battles the humans but eventually they are found to be sentient and a truce is made. Another alien is a gopher-like creature that is telepathic and can relay messages.
After many years the humans, wolves and gophers live in harmony. Then an alien spaceship lands on the planet. The humans and their allies kill the aliens and take over the ship. The second book is about them going out and conquering the alien empire and rescuing the human planets. It has a little of the flavor of Poul Anderson's The High Crusade.