Dr. Heinz Doofenshmirtz (often called "Doofenshmirtz", or occasionally "Doof") is a fictional character and the main antagonist (of Agent P, aka Perry the Platypus) from the animated television show Phineas and Ferb. He was created by Dan Povenmire and Jeff "Swampy" Marsh, and is voiced by Povenmire. The character first appeared in the pilot episode of the series and appears in the majority of episodes. He is described as an incompetent and forgetful evil scientist intent on conquering the "entire tri-state area" by creating obscure but nefarious inventions. Dr. Doofenshmirtz speaks with a caricature of a German accent and is from the fictional European country Drusselstein.
Doofenshmirtz appears in several merchandise pieces, including the book series and the video game.