Beginning during the Polish–Lithuanian Commonwealth, the Polish culture began to penetrate the city rapidly and soon the Polish language prevailed in the city, even the Magistrate's documents were written in Polish until the November Uprising in 1831. After living for a while in Vilnius, foreign merchants and artisans quickly assimilated and were Polonized. The majority of the Lithuanian nobles spoke the Polish language, however they never considered themselves Poles and the Union of Lublin was only signed during the second attempt in 1569, with the agreement that both states will be sovereign entities within the Commonwealth and the forbidment for the Poles from the Crown of the Kingdom of Poland to buy land in the Grand Duchy of Lithuania. Their opinion did not change within the union and was confirmed again in the Reciprocal Guarantee of Two Nations in 1791.