Complex sentence: On 2 July, 2014 Prime Minister Abdullah Thani completed negotiations for a settlement agreement with factions still holding oil ports which then remained shuttered due to factional infighting, to reopen the two remaining major oil ports in the country, thus ending the country's oil crisis.
Split into simpler sentences: On 2 July, 2014 Prime Minister Abdullah Thani completed negotiations for a settlement agreement with factions still holding oil ports which then remained shuttered due to factional infighting. Thani's brokered agreement reopened the two remaining major oil ports in the country, thus ending the country's oil crisis.