Lately I've been reading a fair bit about medieval communes, the history of Switzerland, city states, etc...
It is quite interesting stuff to see how widespread such pseudo-democratic institutions were in the high medieval period, where by the early modern period they had largely vanished...