Doctor Heinz Doofenshmirtz, often called Doof for short, is the main antagonist of the animated Disney show Phineas and Ferb, being an extremely intelligent but incompetent mad scientist who rivals Agent P, the secret agent pet platypus of the show's titular characters.
Born in the fictional European Kingdom-styled country of Drusselstein, Heinz has comically tragic childhood of constantly being overshadowed by his successful brother and neglected by his parents. He later grew up to be a L.O.V.E.M.U.F.F.I.N member, father of Vanessa Doofensmirtz, and nemesis of O.W.C.A, a government agency of anthropormorphic animals seeking to wipe out all evil threatening Earth. As all evil scientists has their O.W.C.A rival, Doofenshmirtz's is the aforementioned Parry the Platypus.
Doofenshmirtz's amazing skills in engineering are almost comical, as he is able to build the most scientifically advanced and ludicrous machines (usually large rays with different effects called inators) extremely quickly. While his genius is overlapped by his incompetence and comedic stupidity (usually by putting an obvious self-destruct button on his inators), he can still hold his own in a fight against Parry, who is specially skilled in martial arts.