The invention discloses a method for treating anode mud by swirl electrolysis, belonging to the technical field of nonferrous metals hydrometallurgy and resource regeneration recycling. In the method, the anode mud is used as the raw material, after being leached with nitric acid, the anode mud is filtered by a precise filtering device, then, nitric acid solution containing silver and copper is obtained; the nitric acid solution containing silver and copper is treated by desilverization through two sections of swirl electrolysis, then, silver powder is obtained, after the silver powder is collected, the silver powder is washed with pure water and dried, the desilverized barren liquor sequentially enters into a swirl electrolysis system so as to be treated by electrolysis for copper removal, thus, cathode copper is obtained. The treatment method provided by the invention efficiently recycles metals, turns waste into wealth, and realizes recycling of resources; by the swirl electrolysis technology, metals can be selectively treated by electrolytic deposition, and the silver and the copper can be purified better; the current density and the current efficiency both are higher, reagent consumption is low, the production cost is reduced, and the benefits of enterprises are improved; meanwhile, the solution is circulated in closed loop, emission of harmful gas is avoided, so that the method meets the current concept of circular economy and environment protection.