If you want to leave your guild, open the Guild section, then click on "My Guild". In the list of players find your character's nickname, tap on it and choose an option «Leave the Guild».