Memachek (Melacha)
The melacha of Memachek (smoothing) is one of the 39 melachos of Shabbos. Its halachic definition is the act of preparing hide for use by leveling and smoothing it through the removal of the parts that protrude and stick out from it, such as hair or other protrusions, in order to use it.

In Halacha edit
In the Shulchan Aruch[2] the Alter Rebbe rules: "One who smooths hide, that is, who scrapes the wool or the hair off the hide until the surface of the hide becomes smooth, is liable, and this is one of the Avos Melachos, for they did so in the Mishkan with the skins of tachashim and the red-dyed ram skins. Therefore, one may not scrape a sandal or a shoe, whether new or old, even with the back of a knife, and needless to say with its sharp edge or with a fingernail, because one peels off the leather slightly, and this constitutes smoothing."
The Alter Rebbe also addresses a common practice of people who would wipe their shoes on a sharp piece of iron that was fixed for this purpose in front of the entrance to the synagogue, even though their aim was not necessarily to remove superfluous parts from the shoe, but rather to clean the mud off the shoe. For this reason, it is ruled in the Alter Rebbe's Shulchan Aruch that one should prepare an iron that is not so sharp, so that even when those people wipe their shoes on that iron, they will not thereby cause their shoes to become smooth and shiny.
The reason for this is apparently because those people derived benefit from the fact that the leather of the shoe became smooth and shiny through this act of rubbing the shoe on that iron. Therefore, this melacha – although done incidentally – is considered a complete melacha, since it is defined as a psik reisha v'nicha lei, that is, an act that will certainly be done and carried out – even if incidentally – and since the one doing it is pleased and satisfied by its performance, the act is considered for him as an act that a person does willingly, like any other melacha.