Players are automatically placed in an alliance when you unlock the Alliance feature.

You will then have the option to switch or create your own alliance, if you wish to do so.