Complex sentence: In accordance to "El Código Negro" the slave could buy his freedom and thus the former slave became known a "freeman" or "freewoman".
Split into simpler sentences: In accordance to "El Código Negro" the slave could buy his freedom. Those who did became known as "freeman" or "freewoman".