A melee is a brawl: confused, hand-to-hand fighting in the thick of a pitched battle.
Think of it as a violent free-for-all where everyone is tangled up in close combat at once.