The context of what Gandhiji saw as an opportunity is referring to Khilafat movement. This was an pan Islamic group that started in the parts of Indian dominated by Britain, this was done so as to convince the British government to protect the Ottoman Empire especially after the end of the first world war