The Dominican Republic originally became independent from Haiti in 1844 following the War of Independence. However, in 1861 the country was occupied by Spain following an inflation crisis. In 1865 the country became independent again following the Restoration War.