The time-dependent density functional theory and the density functional theory are used to investigate the nature of hydrogen bonds formed by the derivative of the coumarin (TFKC) and the water molecules. The ground-state geometry optimizations, electronic excited energies and corresponding oscillation strengths for the TFKC monomer, the hydrogen-bonded TFKC-Water (HBA) dimer, TFKCWater (HBB) dimer and TFKC-2Water complex are calculated. We find that, upon photoexcitation, the weaker hydrogen bond in the ground state will be affected by the relatively large impact for TFKC in the water. For better understanding the properties of the hydrogen bonds in the excited states, the frontier molecular orbitals of the S0 and S1 states are shown, and we find the obvious electron density transitions form the water molecules to the TFKC monomer. The electron transfer is expected to be the reason the hydrogen bond dynamics happens.