Machiavelli was the chief diplomat of Florence. He negotiated treaties with France (the superpower of the time) and with the (crazy!!) Borgias, and dealt with their fall.