In 1938, Hansberry's family moved to a white neighborhood and was violently attacked by neighbors. They refused to move until a court ordered them to do so, and the case made it to the Supreme Court .By 1956, Hansberry quit her jobs and committed her time to writing.
She wrote A Raisin in the Sun, a play about a struggling black family, which opened on Broadway to great success, having a run of 530 performances. It was the first play produced on Broadway by an African-American woman, and Hansberry was the first black playwright and the youngest American to win a New York Critics’ Circle award. The film version of A Raisin in the Sun was completed in 1961. Throughout her life she was heavily involved in civil rights.