After the independence from Haiti in 1844, the country was divided in five provinces and in 1845 Baní was made a municipality of the old province of Santo Domingo. In 1944, Baní was made the capital city of the new province José Trujillo Valdéz, now with the name of Peravia.