Cespedes proclaimed independence and formed the Republic of Cuba on October 10, 1868. By 1869, Cespedes had written a constitution that abolished slavery and annexed the country to the United States.