The novel starts when Sherlock Holmes receives a mysterious ciphered message from an agent to Professor Moriarty using the pseudonym Fred Porlock. Together Holmes and Watson decipher Porlock's message which relates that a man named John Douglas, residing at Birlstone, is in danger. Soon inspector Alec MacDonald of Scotland Yard ask Holmes to help in the case....