Niccol di Bernardo dei Machiavelli (3 May 1469 21 June 1527) was an Italian historian, politician, diplomat, philosopher, humanist and writer based in Florence during the Renaissance. He was for many years an official in the Florentine Republic, with responsibilities in diplomatic and military affairs. He was a founder of modern political science, and more specifically political ethics. He also wrote comedies, carnival songs, and poetry. His personal correspondence is renowned in the Italian language. He was Secretary to the Second Chancery of the Republic of Florence from 1498 to 1512, when the Medici were out of power. He wrote his masterpiece, The Prince, after the Medici had recovered power and he no longer held a position of responsibility in Florence. His moral and ethical beliefs led to the creation of the word machiavellianism which has since been used to describe one of the three dark triad personalities in psychology.