Before there were organized baseball leagues , games between white clubs and African American clubs took place and this is where Jackie Robinson played.
In 1867, when there were leagues, the National Association of Baseball Players issued a rule that says: clubs with any black players on them can not play against teams with white amateurs.