How can I transfer the alliance leadership to another player?

To transfer the leadership:
1) Open the alliance menu.
2) Use the Transfer leadership option.
3) Tap the player that you'd like to be the next leader, use the Choose option and confirm your choice.
Beside the transfer option, the leadership is automatically passed on to the most active player in the alliance if the leader is inactive for 30 days.