After the Restoration War ended, the Dominican Republic experienced some years of political turmoil, which ended when Buenaventura Baez started his so called "6 year government".
In 1884, after a close electoral contest in which he beat Casimiro Nemesio de Moya, he was elected President of the Republic.