In accordance to "El Código Negro" the slave could buy his freedom. Those who did became known as "freeman" or "freewoman".[15] On March 22, 1873, the Spanish National Assembly finally abolished slavery in Puerto Rico. The owners were compensated with 35 million pesetas per slave, and the former slaves were required to work for their former masters for three more years.[15][16]