In 1791, in an attempt of reform the Sejm of Poland and Lithuania accepted the Constitution of May 3 which was the first modern constitution in Europe and the second (after the United States) on Earth. But that did not help against the partitions of Poland in 1793 and 1795. 