"His Last Vow" is the third and final episode of the third series of the BBC Television series Sherlock, which follows the modern-day adventures of Sherlock Holmes. The episode was first broadcast on 12 January 2014, on BBC One and Channel One. It was written by Steven Moffat and directed by Nick Hurran with music composed by Michael Price and David Arnold. The episode is a contemporary adaptation of Sir Arthur Conan Doyle's short story "The Adventure of Charles Augustus Milverton".

In the episode, Sherlock Holmes (Benedict Cumberbatch) and John Watson (Martin Freeman) take on a case about stolen letters. This leads the pair into conflict with Charles Augustus Magnussen (Lars Mikkelsen), a media mogul specialising in blackmail whom Sherlock despises. Holmes and Watson try to get Magnussen arrested, but their attempt fails when they confront him at Appledore, Magnussen's home.

On its first broadcast on BBC One, the episode received 11.37 million viewers, a 32.1% audience share. Although this was a drop from "The Sign of Three" and "The Empty Hearse", it became the most tweeted-about single episode of a drama series in the UK. The episode received critical acclaim, and Mikkelsen's performance as Magnussen, in particular, was praised. For their performances in the episode, Cumberbatch and Freeman both won the Emmy Award, for Outstanding Lead Actor in a Miniseries or a Movie and Outstanding Supporting Actor in a Miniseries or a Movie, respectively. Moffat also won the Primetime Emmy Award for Outstanding Writing for a Miniseries, Movie or a Dramatic Special for his work on the episode.

Plot John Watson, whose wife Mary is now visibly pregnant, finds an unkempt Sherlock Holmes in a crack house under the influence of drugs. John attempts to force him to rehabilitate, but Sherlock insists that he was undercover for a case. Mycroft confronts Sherlock about the drug use and realises that Sherlock is investigating Charles Augustus Magnussen, a newspaper owner who blackmails people. Lady Elizabeth Smallwood has enlisted Sherlock to negotiate the return of stolen letters written by Smallwood's husband. Mycroft warns Sherlock not to go after Magnussen, which Sherlock ignores.

John is also surprised to discover that Sherlock is in a relationship with Mary's bridesmaid, Janine. Sherlock tells John that he is dating her because she is Magnussen's assistant. He uses their relationship to enable him to break into Magnussen's office in London. Inside, Sherlock and John find an incapacitated Janine, and Sherlock happens upon Mary holding Magnussen at gunpoint. Mary shoots Sherlock, who harnesses all his mental powers to stay conscious. He is taken to a hospital, where he flatlines on the operating table. But in his mind palace, Moriarty taunts Sherlock that he's letting John down by dying, which convinces him to revive. When Sherlock wakes up in surgery, he mouths, "Mary". John meets Mary at the hospital and tells her that Sherlock survived. Mary visits the dazed and severely injured Sherlock and warns him not to denounce her. John nonetheless begins to suspect something after discovering that Sherlock moved John's chair in the Baker Street flat back to its usual spot and left a bottle of Mary's perfume on the table next to it.

Sherlock breaks out from the hospital and arranges a meeting with Mary. He tells her he knows she has stolen the identity of a baby who died in 1972. He deduces that she intentionally shot him in a non-lethal spot and, using a ruse, exposes Mary's secret life as an assassin to John.

Back at Baker Street John angrily confronts Mary, asking what he ever did to deserve her. Sherlock tells John that he's observed his addiction to danger, and his attraction to Mary complies with this fact. She tells them some of her past and that Magnussen has information that would send her to prison for the rest of her life. Mary gives John a memory stick marked with the initials A. G. R. A., which she says contains everything about her and would destroy his love for her. Sherlock tells John he can trust Mary because she saved his life by calling an ambulance after shooting him.

After ignoring the memory stick for several months, John burns it without reading it and reconciles with Mary. The couple is spending Christmas with the Holmes brothers at their parents' home, where Sherlock takes the opportunity to drug everyone but John so that they can steal Mycroft's laptop. Sherlock takes a hesitant John to meet Magnussen at his estate, which he believes contains Magnussen's blackmail archive. During their confrontation, Magnussen reveals that he was behind the kidnapping of John, as seen in "The Empty Hearse" and explains that he put pressure on Mary in order to "own" Mycroft via John and Sherlock.

Sherlock offers to trade Magnussen's information on Mary for the state secrets contained in Mycroft's laptop. However, Magnussen is aware that Sherlock is setting him up in a trap. The laptop contains a GPS tracker, and once Mycroft realises it is gone, security services will raid the estate and, upon finding the laptop, will have a legal reason to search the blackmail archives. With visible joy, Magnussen reveals that the plan will not work because his vaults don't physically exist; the data are in his mind palace. As a newspaper publisher, he can publicise any secret without backup documents. By giving Magnussen the laptop, Sherlock and John are now guilty of selling government secrets. They can be imprisoned for high treason, whereas Magnussen remains legally untouchable. When Mycroft and the police arrive, Sherlock coldly shoots Magnussen in the head, realising that this is the only way to free his friends and everyone else from his power.

Mycroft convinces the government to spare Sherlock a trial and, as an alternative punishment, press him into a high-risk mission in Eastern Europe. However, within minutes of taking off, Sherlock is recalled when video screens all over Great Britain begin to broadcast a loop of a static image of Jim Moriarty asking "Did you miss me?". In the post-credits scene, Moriarty breaks the fourth wall and asks the audience if they missed him as well.

Sources and allusions The plot is primarily drawn from the original short story "The Adventure of Charles Augustus Milverton", the eponymous Milverton being a blackmailer adapted into the character of Magnussen. In both stories, "Appledore" is the name of the antagonist's vaults, and in both, Holmes becomes engaged to an employee of the villain to gain access. Both stories culminate with Milverton/Magnussen's death, although in the original story Milverton is killed by one of his victims.

The title of "His Last Vow" is a play on the title of "His Last Bow", the final Sherlock Holmes story chronologically. The title is not explained within the episode but is a reference to dialogue from the previous episode, "The Sign of Three", in which Sherlock makes his last vow to always be there for John and Mary Watson. The plot of the episode is unrelated to the short story, although there are allusions present. The original story sees the detective having retired to keep bees in a Sussex cottage and in the episode, Janine mentions that she is planning to buy a Sussex cottage from which she will remove some beehives. In the closing dialogue of the episode, a story Mycroft told Sherlock about "the East wind" during their childhood, is similar to a speech from the original story.

Mary reveals her true identity in what Sherlock calls "the empty house", an alleyway hidden behind what are apparently the fronts of two houses in Leinster Gardens. Inside the "house", Mary thinks Sherlock has tricked her by positioning a dummy of himself at the end of the alley: in "The Adventure of the Empty House" a dummy is used to fool assassin Colonel Sebastian Moran in an empty house. The letters A. G. R. A. seen on the memory stick appear to be Mary Watson's actual initials. In The Sign of Four, the first original Holmes story to feature Mary Morstan, the Agra Treasure is a main focal point and cause of dispute. In the same story Bill Wiggins, a drug addict in "His Last Vow", is one of the Baker Street Irregulars. The opening sequence, in which John travels to a drug den to retrieve the son of a family friend and finds Sherlock as well, is derived from the opening of "The Man with the Twisted Lip".

According to Gatiss, Mycroft's line, "As my colleague is fond of remarking, this country sometimes needs a blunt instrument" is a reference to a comment by M describing James Bond, and is intended to suggest that the two series share the same reality.

Production

Casting In July 2013, it was announced that Danish actor Lars Mikkelsen would star as the main villain of the third series of Sherlock. Mikkelsen first appeared in a non-speaking cameo appearance at the end of "The Empty Hearse". The portrayal of Magnussen was described by Steven Moffat as "terrifying". Mikkelsen was suggested for the role by producer Sue Vertue and recorded an audition video for the production team in which he urinated in his barn. Mikkelsen was starring in a film set in East London at the time and had picked up a London accent, so he had to "re-Dane-ify" his accent.

Moffat and Vertue's son, Louis Moffat, played a young Sherlock in two scenes and Benedict Cumberbatch's real-life parents, Timothy Carlton and Wanda Ventham, reprised their roles as Sherlock's parents from "The Empty Hearse". Steven Moffat joked afterwards that Sherlock "runs on nepotism".

Writing Steven Moffat confirmed that the cliffhanger, the return of Moriarty, had been planned as far back as series two, when he discussed the plan for Moriarty's character with actor Andrew Scott. However, he joked that he was as surprised as the viewers to see Moriarty return, noting that it is impossible to fake shooting oneself in the head. Scott appeared in a short post-credits scene talking to the camera, both firsts for the show. Moffat has commented that viewers will have to wait "years" to see the resolution of the cliffhanger.

Gatiss and Moffat had considered adapting the character of Charles Augustus Milverton for some time, considering him to be a "brilliantly realised" villain. Moffat viewed Magnussen as Sherlock's "intellectual mirror" and a "unique baddy", and stated that he fell in love with him. The character of Magnussen was originally conceived as an American retaining the name of Milverton, but Moffat changed both his nationality and name when Mikkelsen was cast. He found the name Magnussen on a website of Danish names, looking for one that resembled Milverton, the name of the original character from Doyle's short story. Gatiss noted that the character is a "fascinating new place to go" due to his differences from Moriarty. When Mikkelsen received the script, he stated that his first impression was that it was "the best script I've ever read". Contrasting Magnussen to Moriarty, Cumberbatch stated that he was "so chilling because of how real he is, how normal he is", and that he is "not driven by a mad, chaotic joker's energy that Moriarty has".

On the introduction of young Sherlock, Moffat noted that it was the logical course to take after the introduction of the Holmes parents: "Once you've got the parents in and you've got the sibling rivalry and stuff, people start to think, 'well what was young Sherlock like?' You just want those things, you want to see those things, it's part of updating it."

Filming

Director Nick Hurran had previously worked with Steven Moffat on several episodes of Doctor Who, including the fiftieth anniversary special.

Filming for "His Last Vow" began on 29 July 2013. Some filming was in Cardiff, and part in Leinster Gardens, where houses 23 and 24 were shown to be mere façades. Scenes set at 'Appledore', Magnussen's house, were filmed at Swinhay House in Gloucestershire, owned by Sir David McMurtry, boss of Renishaw engineering.