How do you sleep train a baby?

AB

This may be a stupid question but I keep hearing other moms mention sleep train their baby and how it works so well. What exactly is sleep train? How do you do it ?