What is the origin of the slang word 'negro'?

Negro is the Spanish word for black.