In high school, Mac Lane's favorite subject was chemistry. While in high school, his father died, and he came under his grandfather's care. His half-uncle, a lawyer, was determined to send him to Yale University, where many of his relatives had been educated, and paid his way there beginning in 1926. As a freshman, he became disillusioned with chemistry. His mathematics instructor, Lester S. Hill, coached him for a local mathematics competition which he won, setting the direction for his future work. He went on to study mathematics and physics as a double major, taking courses from Jesse Beams, Ernest William Brown, Ernest Lawrence, F. S. C. Northrop, and Øystein Ore, among others. He graduated from Yale with a B.A. in 1930. During this period, he published his first scientific paper, in physics and co-authored with Irving Langmuir.