The Dominican Republic originally became independent from Haiti in 1844. However, in 1861 the country became part of Spain following an inflation crisis. In 1865 the country became independent again following the Restoration War. By 1870 the country had significant debts caused by the ongoing civil war. President Báez planned on selling the Samaná Peninsula to the United States for $1.1 million, whilst US President Ulysses S. Grant wanted to annex the entire country. A treaty was signed between the two countries on 29 November 1869. The US would purchase the Dominican Republic for $1.5 million and would lease the Samaná Peninsula for $147,229.91 for 99 years. Although the proposal was approved in the 1870 referendum, the United States Senate rejected the annexation on 30 June 1870 with a 28–28 vote.