Writing his most important work of history—Florentine Histories—as a commission from the Medici, Machiavelli applies many of the ideas set forth in The Prince and Discourses.