The Islamic State has been carrying out executions and mass killings since it took northern Iraq. Some of these are to eliminate opponents, others are to assert its control over the population, and there are some cases where the IS has attempted to wipe out groups like the Yazidis. Almost 3,000 people have died in these acts so far since June. Here's a link to the article.