A gran maestro was the unofficial head of state in the Italian city-states. The role could depend on holding a particular office, military power or a general subversion of the constitution.