If your Guild Master does not log in to the game for more than 30 days in a row, their title is automatically transferred to a General or an Officer who is the first one to log in to the game after the 30 days timer has run out.
If the Guild Master logs in, the 30 days timer resets. Another way of transferring the title is to contact that player directly and ask them to manually transfer the title to someone else.