Number theory
Number theory was seen as useless pure math until prime numbers became crucial for computer security in the 1970s. Number theory is the study of integers and their properties. It asks seemingly simple questions that turn out to be extremely hard to answer. For centuries, mathematicians thought it had no real-world use.
Adapted from Wikipedia: https://en.wikipedia.org/wiki/Number_theory