Attacks by armed groups and sectarian violence have forced tens of thousands from their homes in the past two months.