After the obliteration of Castelseprio by Ottone Visconti in 1287, Gallarate became the capital of the vast Seprio county. During these years, Gallarate saw a period of prosperity and economic growth that would last for the rest of Visconti control, until the beginning of French rule two centuries later (1498). Documents in the National Archives refer to Gallarate as an important centre of commercial exchange between both Italian and foreign markets, particularly for cotton, drapes, flax and textiles. Distinguished families such as the Rosnati, Reina, Masera, Palazzi, Macchi, Curioni, Mari and the Guenzati represented the nobility and the merchant classes. This period was also noted as a time of great civic improvement and the beginning of Gallarate as a centre of industrial activity.