The answer is nationalism. Both leaders wanted to free their countries from the foreign rul. They had gathered all their supporters in order to unify them under King and stage an uprising. Both leaders became successful and were able to regain sovereignty in their respective countries