It was first dates back to the original "Star Wars" (1977) film, most notably with the character Grand Moff Tarkin, though the word "Moff" is not used in that film and the character is only identified by that title in the end credits.