The death of Tito and the subsequent breakup of Yugoslavia led to an armed conflict in the newly independent Republic of Bosnia and Herzegovina. The Dayton Agreement which ended the war partitioned the state between two federal entities: the Federation of Bosnia and Herzegovina and the Republika Srpska. The country was thus completely divided along ethnic lines, exacerbating the rise of nationalism and income inequality.