How did Luther king became the president if he was black on these days?

Back in the days black was not allowed to do things do how did he Be the president??? Pleas answer!!!??? :)
3 answers 3