Latin and Polish were also widely used in the Chancery of the Grand Duchy of Lithuania. In the second part of the 17th century, the Polish language ousted the Ruthenian language from the written sources and the Lithuanian language from most areas of the public life. The first state documents in the Lithuanian language appeared in the Grand Duchy of Lithuania only at the very end of its existence (e.g. Constitution of 3 May 1791 and the Great Sejm Lithuanian manuscripts, Kościuszko Uprising Lithuanian notes).