The Tuoba (Chinese) or Tabgatch, also known by other names, was an influential Xianbei clan in early imperial China. During the Sixteen Kingdoms after the fall of Han and the Three Kingdoms, the Tuoba established and ruled the Dai state in northern China. The dynasty ruled from 310 to 376 and then was restored in 386. The same year, the dynasty was renamed Wei, later distinguished in Chinese historiography as the Northern Wei. This powerful state gained control of most of northern China, supporting Buddhism while increasingly sinicizing. As part of this process, in 496, the Emperor Xiaowen changed the imperial clan's surname from Tuoba to Yuan. The empire split into Eastern Wei and Western Wei in 535, with the Western Wei's rulers briefly resuming use of the Tuoba name in 554.