Prior to the two major non-Han dynasties, Yuan (Mongol, 1206-194) and Qing (Manchu, 1644-1911), membership in the Han majority was often a matter of assimilation, for example adopting a Han surname and Han customs, rather than of heritage.  In fact, some Han surnames and some Han heroes are of non-Han origin, but have been adopted by centuries of association.