His work related to string theory in physics and to fast algorithms in computer science, well before these ideas had been discovered. Ramanujan produced a number of formulae for finding pi to a high degree of accuracy and worked extensively on number theory. Links:
Ramanujan on Wikipedia Ramanujan on St Andrews Uni