What happened in the court room in TKAMB?

In the court room scene in "To Kill a Mockingbird," Atticus Finch defends Tom Robinson, a black man accused of raping a white woman, Mayella Ewell. Despite the lack of evidence and the obvious inconsistencies in Mayella's testimony, Tom Robinson is found guilty by an all-white jury due to the racial prejudices prevalent in the town. This highlights the theme of racial injustice and discrimination in the novel.