Layered zirconium sulfophenyl phosphonate as heterogeneous catalyst in the synthesis of pyrazoles and 4,5,6,7,-tetrahydro-1(2)H-indazoles.