To segregate is to divide people or things into different groups. This can be done for any reason, but it is usually done because it is thought to be better for the people or things involved.
- The school is segregating the students by race.
- The company is segregating the workers by gender.