	The economy of the Commonwealth was dominated by feudal agriculture based on the plantation system (serfs). Slavery was forbidden in Poland in the 15th century, and formally abolished in Lithuania in 1588, replaced by the second enserfment. Typically a nobleman's landholding comprised a "folwark", a large farm worked by serfs to produce surpluses for internal and external trade. This economic arrangement worked well for the ruling classes in the early era of the Commonwealth, which was one of the most prosperous eras of the grain trade. The economic strength of Commonwealth grain trade waned from the late 17th century on. Trade relationships were disrupted by the wars, and the Commonwealth proved unable to improve its transport infrastructure or its agricultural practices. Serfs in the region were increasingly tempted to flee. The Commonwealth's major attempts at countering this problem and improving productivity consisted of increasing serfs' workload and further restricting their freedoms in a process known as export-led serfdom.