Community self-defense also led Hakka communities into wider conflicts: back in China, a local militia confederation in the Guangxi hill country formed the core of the massive Taiping Rebellion (1851–1864), which transformed local interethnic feuding into an antidynastic millenarian movement.