Machiavelli and despotism

Is Machiavelli a supporter of both despotism (as in The Prince) and Republicanism (as in The Discourses)? How does he reconcile the two? Or does he not do so? include at least two citations