The Spirit is dead.

NASA said on Tuesday that it was abandoning efforts to get back in touch with Spirit, one of the two rovers on Mars. Spirit, which has been stuck in a sand trap for two years, fell silent last year as winter arrived and its solar panels could no longer generate enough electricity. Engineers had hoped that the rover would revive when spring returned, but they never heard from it again.

Now, as the Martian days grow shorter, Spirit’s managers decided that it was not worth the time and money to continue.

“We couldn’t recover any of the approved science objectives that we had for Spirit even if we heard from the rover, which is very unlikely,” said John Callas, the project manager for Spirit and its twin, Opportunity, which continues to operate on the other side of the planet.

The last set of commands to Spirit will be sent early Wednesday morning.

The Spirit and Opportunity rovers landed on Mars in January 2004, their original mission scheduled to last just three months. At first, it did not seem that Spirit would last even that long. A computer memory glitch disabled it three weeks after landing.