The use of the rack began to wane with the Enlightenment, as societal views on punishment and human rights evolved. By the late 18th century, its use was becoming rare, and it was eventually abolished in most places by the 19th century.