Take sides

To support one side or the other side.

“You should not take sides in some arguments or both sides will be angry at you.”