Zn-based TMU-24 as a metal–organic framework (MOF), containing amide-functionalized pores was prepared by a facile and efficient strategy. The obtained TMU-24 was illustrated to be efficient adsorbents for the eosin B removal from an aqueous solution. Due to their large surface area, stability, tunability, and porosity of the TMU-24, as well as π–π and hydrophobic interactions, hydrogen bonding formation between the dye and the MOF ligands, the fabricated sorbents showed fast adsorption kinetics (9 min) and high adsorption capacity. The effect of important factors such as pH, amount of adsorbent, contact time, and desorption conditions to achieve the optimal removal conditions was investigated. The optimum condition was pH = 6, absorbent dosage 4 mg and contact time 9 min. The adsorption results match with those of the Langmuir model and the pseudo-second-order kinetics, suggesting that eosin B was adsorbed to the adsorbent in monolayers due to its chemical affinity. The maximum adsorption capacity of TMU-24 for the removal of eosin B was 370.37 mg/g. Thermodynamic parameters suggested that the adsorption procedure is spontaneous and exothermic. TMU-24 exhibited excellent reusability (6 cycles) and had potential in the treatment of dyes polluted wastewater.