Researchers optimized extraction of alkaloids from Thalictrum foliolosum DC using tailor-made deep eutectic solvents and ultrasonication. The method yielded high amounts of berberine, berbamine, magnoflorine, and palmatine with strong antioxidant and anti-glycemic properties, suitable for pharmaceutical and nutraceutical industries.