His personal political theory was based on an idealization of Cicero. It was probably unworkable.
The view you are referencing comes from In Principia or On Principalities, known in the west as The Prince. That work details not Machiavelli's own precepts but those of Cesar Borgia, the fifteenth century warlord son of Pope Alexander XI and brother of Lucrezia Borgia.