This is a common misconception. Einstein actually won the 1921 Nobel Prize in Physics for his explanation of the **photoelectric effect**, not for his theory of relativity. His work on the photoelectric effect was pivotal in the development of quantum theory. While relativity is perhaps his most famous contribution, it was considered too controversial and insufficiently verified at the time for the Nobel Committee to award the prize for it.
