If there is an ideology that holds power over masses and draws them away from rational progress that is in their own economic interests, then institutions, processes such as elections etc. and even reasonably developed democracy may not be sufficient to erode support for extremist or terrorist elements.