The city went through serious troubles in the mid-fourteenth century.