When Scott returned to Missouri, he attempted to buy his freedom. After his owner refused, he sued in the state courts, arguing that because he had lived in areas where slavery was banned, he should be free.
He should have been set free, if slavery was banned in some areas then it should be banned in all.