To rank up a hero, you need to reach their maximum level cap and have the required rank up materials. These include gems, gold, and hero shards which can be obtained through summoning, events, PvP, and other game modes.