Star Trek III: The Search for Spock is a 1984 American science fiction film, written and produced by Harve Bennett, directed by Leonard Nimoy, and based on the television series Star Trek. It is the third film in the Star Trek franchise and is the second part of a three-film story arc that begins with Star Trek II: The Wrath of Khan (1982) and concludes with Star Trek IV: The Voyage Home (1986). After the death of Spock (Nimoy), the crew of the USS Enterprise return to Earth. When James T. Kirk (William Shatner) learns that Spock's spirit, or katra, is held in the mind of Dr.
https://en.wikipedia.org/wiki/Star_Trek_III:_The_Search_for_Spock