In this study, the two types of organic-metal framework were prepared using thermal solvent method. In the first project, the MIL-101Cr was prepared as a substrate, then polyaniline was placed on it and then the silver nanoparticle was loaded onto it. The final combination of MIL-101Cr/PANI/Ag was used as an adsorbent and removal of methylene blue and Rhodamine B from aqueous solutions was performed by it. In the second project, the MIL-101Fe was prepared as a substrate, then polyaniline, and then palladium nano-particles were loaded on it. This compound was used as a photocatalyst for the removal of methylene blue and Rhodamine B dye under UV light irradiation. Degradation of methylene blue dye in a neutral environment more than rhodamine B dye and this decrease is due to a larger size of rhodamine B dye molecules than methylene blue dye molecules. Due to the importance of nanomaterials as an adsorbent in the removal of water-soluble pollutants such as dyes, in this study we have tried to reduce the time factor in the removal of organic methylene blue and rhodamine B dyes by providing high porosity materials. In this study, chromium and iron mixtures were prepared and then studied by solvent heating method. These porous materials have a morphology close to hexagonal. The synthesized nanomixes were investigated to remove methylene blue and rhodamine B dyes. The highest capacity for dye removal was achieved by these nanocomposites. The highest removal capacity for methylene blue and rhodamine B is 97% and 92%, respectively.