Designing an effective photoactive heterojunction having dual benefits towards photoenergy conversion and pollutant adsorption is regarded as an affordable, green method for eliminating tetracycline (TC) from wastewater. In this regard, a series of BiOBr@NU-1000 (BNU-X, X = 1, 2 and 3) heterojunction photocatalysts are constructed. BNU-X preserves the original skeleton structure of the parent NU-1000, and its high porosity and specific surface area enable superior TC adsorption. At the same time, BNU-X is an effective Z-scheme photocatalyst that improves light trapping, promotes photoelectron-hole separation, and shows excellent photocatalytic degradation efficiency towards TC with the value of the photodegradation kinetic rate constant k being 2.2 and 24.8 times those of NU-1000 and BiOBr, respectively. The significant increase in the photocatalytic activity is ascribed to the construction of an efficient Z-scheme photocatalyst, which promotes the formation of superoxide radicals (˙O2-) and singlet oxygen (1O2) as the main oxidative species in the oxidation system. This research has the advantage of possibilities for the development of porous Z-scheme photocatalysts based on photoactive MOF materials and inorganic semiconductors for the self-purification and photodegradation of organic contaminants.