 Admitted to the bar in 1886, he practiced law in Chicago as a member of the firms of Gregory, Booth, and Harlan, and Harlan and Harlan.From October 1888 to 1889, he served as the first law clerk to Chief Justice Fuller.In 1901, President Theodore Roosevelt nominated Harlan as Attorney General of Puerto Rico and he served until 1903.