Abolitionism is a movement to end slavery, whether formal or informal. In Western Europe and the Americas, abolitionism was a historical movement to end the African and Indian slave trade and set slaves free. King Charles I of Spain, usually known as Emperor Charles V, following the example of the Swedish monarch, passed a law which would have abolished colonial slavery in 1542, although this law was not passed in the largest colonial states, and so was not enforced.