Ultrafine AuCo alloy nanoparticles were successfully encapsulated in the pores of MIL-101 by using the double solvents method combined with the overwhelming reduction approach, which exert excellent catalytic activity for hydrolytic dehydrogenation of ammonia borane.