He was seriously ill during the filming of Vivre et laisser mourir (1973), causing the producers to consider replacing him with Kenneth More. However Lee recovered sufficiently to play the character M until Moonraker (1979), the last Bond film made before his death from stomach cancer in 1981.