A novel metal‐organic frameworks (MOF) material, namely {Zn3(bpybc)(imdc)2·H2O)}n (1), (bpybc2− = 1,1′‐bis(4‐carboxyphenyl)‐4,4′ ‐bipyridinium cation, imdc3− = 4,5‐imidazole‐dicarboxylic acid anion) has been successfully synthesized under solvothermal conditions. The synthesis utilized H2bpybc·2Cl, 4,5‐imidazole‐dicarboxylic acid and Zn(NO3)2·6H2O as the raw materials. Complex 1 not only exhibits reversible photochromic behavior but also features photocontrolled luminescence properties. Notably, complex 1 shows the sensing ability of Cr2O72−. It has the capability to selectively detect ammonia vapor, undergoing a color change from orange to tan in response to ammonia vapors, thereby exhibiting certain sensing properties for ammonia vapor.