 After the Battle of Ochagavía, General Freire agreed to a cease-fire with Prieto.A Government Junta was organized and took control, in order to avoid the continuance of hostilities, under the neutral figure José Tomás Ovalle, who was acceptable to both sides.This junta ruled the country from December 24, 1829 to February 18, 1830.