
Gates, recently acknowledged as the richest man in the world for the 13th year, will be the principal speaker at Afternoon Exercises during Harvard's 356th Commencement in June, where he will receive an honourary degree.
Paul Finnegan, president of the Harvard Alumni Association, said: "I am very pleased that the Harvard community will have the opportunity to hear from Bill Gates on 7 June.
"His contributions to the world of business and technology, and the great example he has set through his far-reaching philanthropy, will rightfully put him on centre stage in Harvard Yard."
Gates is a member of the Harvard College class of 1977, which will celebrate its 30th reunion during Commencement Week.
The future co-founder of Microsoft arrived at Harvard as a freshman in 1973 and, while at Harvard College, pursued his passion for computer programming.
He also came to know his classmate and future business partner Steve Ballmer, who lived down the hall at Currier House.
As an undergraduate, Gates teamed up with his childhood friend Paul Allen to develop a version of the Basic programming language for the first microcomputer, the MITS Altair.
He left Harvard during his junior year to devote himself to building Microsoft, the company he and Allen founded in 1975. Gates has gone on to accrue a net worth of US$56bn.
Gates plans to step down from his day-to-day role at Microsoft from July next year to devote more time to the Bill and Melinda Gates Foundation, although he will remain as chairman.
With an endowment of more than US$30bn, the Gates Foundation is the world's largest philanthropic foundation and currently makes grants totalling more than US$1.5bn a year.