 In 1897 he was admitted to the Pennsylvania bar in Allegheny County.Though McIlwain remained interested in law through his life, he quickly abandoned his legal career.In 1898 he received a master's degree from Princeton University, and began teaching Latin and history and coaching track and field at the Kiski School in Saltsburg.