There were three main social groups in the antebellum South: planters who owned 20 or more slaves and comprised 1% of the population, small farmers who owned some land and 1-2 slaves making up 75% of whites, and poor whites who rented land. Free African Americans faced discrimination through laws restricting their movement and rights in an attempt to prevent rebellion or proving self-sufficiency. Slave codes further stripped enslaved African Americans of rights by prohibiting assembly, travel without permission, gun ownership, education, and testimony in court. Despite long workdays and family separation, slaves resisted through close family units and religious worship where allowed.