 Through a peace settlement arranged by the US chargé d'affaires in Tegucigalpa, Bonilla stepped down and the war with Nicaragua came to an end.The settlement also provided for a compromise régime headed by General Miguel R. Davila in Tegucigalpa.Zelaya however was not pleased by the settlement, as he strongly distrusted Davila.