Machiabelli was a big Florence patriot and was writing his advice specifically to help a prince better govern Florence and hence increase the chance that Florence will not be annihilated in the constant wars that raged on the Italian Peninsula at the time.