Ans. The photoelectric effect is closely related to Einstein's theory of relativity because it provided experimental evidence for the existence of photons and their discrete energy quanta. This revolutionary idea challenged the prevailing wave theory of light and contributed to the development of quantum mechanics, which is a cornerstone of modern physics.