Pennsylvania's Attorney General election was held November 2, 2004.[1] Necessary primary elections were held on April 27, 2004.[2] Tom Corbett was elected attorney general, a position that he had held from 1995 to 1997 after being appointed by Governor Tom Ridge to fill a vacancy. Corbett, who had been a U.S. Attorney, narrowly defeated Montgomery County District Attorney Bruce Castor in the Republican primary, then won by an even tighter margin in the general election. Corbett's Democratic opponent was Jim Eisenhower, the 2000 nominee who had once served as an Assistant U.S. Attorney and had been a close confidant of Governor Ed Rendell. Eisenhower won in a primary that featured three top-tier candidates: his opponents were David Barasch, a former U.S. Attorney, and John Morganelli, the Northampton County District Attorney who was narrowly defeated by Eisenhower in the previous Democratic primary for this position.