B. They believed that it eroded Islam.
Al-Qaeda and the Islamic State oppose globalization primarily because they perceive it as a threat to Islamic values and identity. They argue that globalization promotes Western culture, secularism, and values that are contrary to their interpretation of Islam, which they believe undermines their religious beliefs and communal identity.