To segregate something means to place it in a group apart from other things.
In gym class, the children were segregated into two groups: boys and girls.
Example picture