In the time after that, Pavia was an important and busy town. Under the Treaty of Pavia, Emperor Louis IV gave the Palatinate to his brother during his stay in Italy. Pavia held out against the domination of Milan, finally yielding to the Visconti family, rulers of that city in 1359; under the Visconti Pavia became an intellectual and artistic centre, being the seat from 1361 of the University of Pavia founded around the nucleus of the old school of law, which attracted students from many countries.