From the 1850’s until 1945, toothpaste contained soap. After that time, soap was replaced by other ingredients to make the paste smoother – such as sodium lauryl sulphate, a common ingredient in present-day toothpaste. – WTF Fun Facts
Source: History Of Toothbrushes And Toothpastes (colgate.com)