Indian nationalism, a response to Western imperialism, adopted elements from Western discourse while being shaped by the context of colonial rule.