Fleming based the character M on a number of people he knew who commanded sections of British intelligence. Primary amongst these was Rear Admiral John Godfrey, who was Fleming's superior at the Naval Intelligence Division. M has appeared in the novels by Fleming and seven continuation authors.
Fleming's third Bond novel, Moonraker, establishes M's initials as "M**** M*******" and his first name is subsequently revealed to be Miles. In the final novel of the series, The Man with the Golden Gun, M's full identity is revealed as Admiral Sir Miles Messervy KCMG; Messervy had been appointed to head of MI6 after his predecessor had been assassinated at his desk. He turned down the post of fourth Sea Lord to become head of MI6.
A naval theme runs throughout Fleming's description of M and his surroundings, and his character was described by journalist and Bond scholar Ben Macintyre as "every inch the naval martinet". Macintyre also notes that in his study of Fleming's work, Kingsley Amis outlined that way Fleming had described M's voice, being: angry (three times); brutal, cold (seven times); curt, dry (five times); gruff (seven times); stern, testy (five times). In addition, M collects navy cutlasses and lives in his home surrounded by nautical ornaments and mementos.
Over the course of twelve novels and two collections of short stories, Fleming provided a number of details relating to M's background and character. In On Her Majesty's Secret Service it is revealed that M's pay as head of the Secret Service is £6,500 a year, (£101,396 in 2012 pounds) £1,500 of which comes from retired naval pay. Although his pay is good for the 1950s and 1960s, it is never explained how M received or can afford his membership at Blades, an upscale private club for gentlemen he frequents in London to gamble and dine. Blades has a restricted membership of only 200 gentlemen and all must be able to show £100,000 (£1,559,944 in 2012 pounds) in cash or gilt-edged securities. Kingsley Amis noted in his study, The James Bond Dossier, that on M's salary his membership of the club would have been puzzling. As a personal favour to M, the staff at Blades keeps a supply of cheap red wine from Algeria on hand but does not include it on the wine list. M refers to it as "Infuriator" and tends only drinks it in moderate quantities unless he is in a very bad mood.
Academic Paul Stock argues that M's office is a metonym for England and a stable point from which Bond departs on a mission, whilst he sees M as being an iconic representative of England and Englishness.
In the first post-Fleming book, Colonel Sun, M is kidnapped from Quarterdeck, his home, and Bond goes to great lengths to rescue him. The later continuation books, written by John Gardner, retain Sir Miles Messervy as M, who protects Bond from the new, less aggressive climate in the Secret Service, saying that at some point Britain will need "a blunt instrument". In Gardner's final novel, COLD, M is kidnapped and rescued by Bond and finishes the book by retiring from MI6. Continuation Bond author Raymond Benson's 1998 novel The Facts of Death continued Messervy's retirement, where he still resides in Quarterdeck. The book also introduces a new M, Barbara Mawdsley. In the book Devil May Care, M took up Yoga to deal with the stress of changing times.
Behind the scenes
Fleming based much of M's character on Rear Admiral John Godfrey, Director of Naval Intelligence of the Royal Navy, and Fleming's superior during World War II. After Fleming's death, Godfrey complained "He turned me into that unsavoury character, M."
Another possibility for the model of M was William Melville, an Irishman who became head of the Secret Service Bureau, the forerunner to both MI5 and MI6: Melville was referred to within government circles as M. Melville recruited Sidney Reilly into government service and foiled an assassination plot against Queen Victoria on her 1887 Golden Jubilee. Fleming's biographer John Pearson also hypothesised that Fleming's characterisation of M reflects memories of his mother:
- "There is reason for thinking that a more telling lead to the real identity of M lies in the fact that as a boy Fleming often called his mother M. ... While Fleming was young, his mother was certainly one of the few people he was frightened of, and her sternness toward him, her unexplained demands, and her remorseless insistence on success find a curious and constant echo in the way M handles that hard-ridden, hard-killing agent, 007."
- ― John Pearson, The Life of Ian Fleming.
Other possible inspirations include Lieutenant Colonel Sir Claude Dansey, deputy head of MI6 and head of the wartime Z network, who achieved different interpretations of his character from those who knew him: Malcolm Muggeridge thought him "the only professional in MI6", whilst Hugh Trevor-Roper considered Dansey to be "an utter shit, corrupt, incompetent, but with a certain low cunning". A further inspiration for M was Maxwell Knight, head of MI5, who signed his memos as "M" and whom Fleming knew well. The tradition of the head of MI6 signing their name with a single letter came from Mansfield Smith-Cumming, who would sign his initial "C" with green ink.