Haidar Ali rose from a horseman to ruler in 1761.