Within a guild there are multiple different roles with different permissions: Leader, Co-leader, Elder, and Member.
Guild role permissions:

 
If the Guild Leader is inactive for over 14 days, they will automatically be demoted to a Member. The next player with the highest rank and with highest Challenge Star-count in the guild will then be promoted to a Leader.