A pretty classic episode.

The Enterprise checks in on a Terraforming station — a science station on an arid lifeless planet which creates, Slartibartfast-style, a new planet. From rock to beauty in 35 years. But you better make sure that planet is truly lifeless! Aparrantly, underground (but not too far underground that they can’t fight back) are tiny sparkles of light which are, alas, intelligent life. Picard has to then vie for peace lest they blow up the ship. “Life force,” he cries, “We will return you to Wet Sand!!!!” And all is well.