In 1869, U.S. President Ulysses S. Grant ordered U.S. Marines to the island for the first time. Pirates operating from Haiti had been raiding U.S. commercial shipping in the Caribbean, and Grant directed the Marines to stop them at their source. Following the virtual takeover of the island, Báez offered to sell the country to the United States. Grant desired a naval base at Samaná and also a place for resettling newly freed African Americans. The treaty, which included U.S. payment of $1.5 million for Dominican debt repayment, was defeated in the United States Senate in 1870 on a vote of 28–28, two-thirds being required.