Sufism already had a long history when some teachers began to set up formal schools or orders ("Tarika" or "Tariqah") in the early Middle Ages. Almost all existing Sufi orders today trace their roots and chain of transmission ("silsila") back to Muhammad, via one of these orders.