 He studied law, was admitted to the bar and commenced practice in Albany, New York, in 1810.He moved to Lanesboro, Massachusetts, in 1813.Shaw was elected as a Democratic-Republican to the 15th and 16th United States Congresses, holding office from March 4, 1817, to March 3, 1821.