Frederic J. Brown / AFP - Getty Images Former CIA director David Petraeus addresses a University of Southern California event honoring the military on March 26 in Los Angeles.

David Petraeus is replacing one kind of intelligence work for another.

Macaulay Honors College at City University of New York said Tuesday the ex-Central Intelligence Agency director and retired four-star general has been named a visiting professor for public policy. He starts on August 1.

Petraeus has a Ph.D. from Princeton University and has written widely on international relations, military strategy and tactics and national security issues.

More news from NBCNewYork.com

In a statement released by the college, Petraeus said he was pleased to teach at the college, where 60 percent of students are children of immigrants. He also said he looks forward to leading a seminar on the global economic slowdown.

Petraeus resigned in scandal from the CIA last November after it was uncovered he'd had an affair with his biographer.

NBCNewYork.com