In this paper, an unprecedented method for hindrance of the photodimerization of coumarin derivative induced by pillar[5]arene-based molecular recognition in water is reported.