Allan J. Pinkerton (25 August 1819 – 1 July 1884) was a Scottish–American detective and spy. He was best known for creating the Pinkerton National Detective Agency. He was known for protecting then-President-elect of the United States Abraham Lincoln during the Baltimore Plot (a plan to kill Lincoln in Baltimore, Maryland in 1862).