"Earth" should be capitalized (e.g., "The astronauts returned to Earth"). However, when discussing soil or ground in a general sense, it remains lowercase (e.g., "They dug into the earth").