Star Trek IV: The Voyage Home (1986)
It's the 23rd century, and a mysterious alien power is threatening Earth by evaporating the oceans and destroying the atmosphere. In a frantic attempt to save mankind, Kirk and his crew must travel back in time to save the Earth and its people from total destruction.