Due to invasions and migrations, Afghanistan includes many ethnic groups. The country has two official languages, but many other languages are also spoken. Over the centuries, local groups isolated themselves as protection against invaders. As a result, some groups are unable to communicate with others. In addition to these ethnic and linguistic differences, groups have conflicting opinions about Islamic beliefs and practices.