This question already has an answer here:
What I seem to remember is that the Martian is stranded by the destruction of his civilization. Also, there is an odd detail that sticks in my brain: the Martian drops a bracelet (or a watch?) in a river, where the implication is that it could be found centuries later. The Martian may have intended to influence the development of humans. Quite poignant at the end.