Biomaterial with the dual-functions of bone regeneration and antibacterial is a novel therapy for infective bone defects. Three-dimensional (3D)-printed porous titanium (pTi) benefits bone ingrowth, but its microporous structure conducive to bacteria reproduction. Herein, a multifunctional hydrogel was prepared from dynamic supramolecular assembly of sodium tetraborate (Na2B4O7), polyvinyl alcohol (PVA), silver nanoparticles (AgNPs) and tetraethyl orthosilicate (TEOS), and composited with pTi as an implant system. The pTi scaffolds have ideal pore size and porosity matching with bone, while the supramolecular hydrogel endows pTi scaffolds with antibacterial and biological activity. In vitro assessments indicated the 3D composite implant was biocompatible, promoted bone marrow mesenchymal stem cells (BMSCs) proliferation and osteogenic differentiation, and inhibited bacteria, simultaneously. In vivo experiments further demonstrated that the implant showed effective antibacterial ability while promoting bone regeneration. Besides distal femur defect, the innovative scaffolds may also serve as an ideal biomaterial (e.g. dental implants) for other contaminated defects.