Why was Rosa Parks Arrested?

Rosa Parks was arrested for not giving up her seat to a white passenger. The year was 1955 and segregation was still in effect. Rosa was sitting in the black section but a person that was white wanted her seat. Rosa hung on to her beliefs and went to jail for it.