History behind the five allegiances