We experimentally analyze the effect of endogenous group formation on the type of sanctioning institutions emerging in a society. We allocate subjects to one of two groups. Subjects play a repeated public goods game and vote on the sanctioning system (formal or informal) to be implemented in...