While most of today's Moldova came into the Ottoman orbit in the 16th century, a substantial part of Transnistria remained a part of the Polish–Lithuanian Commonwealth until the Second Partition of Poland in 1793.