 Hawley was a member of the New York State Assembly, representing Genesee County in the 1820–21 session.He took part in the celebrations of the completion of the Erie Canal in 1825, representing the people of the city of Rochester.His continued interest in the Erie Canal is evidenced in an 1840 essay, "An Essay on the Enlargement of the Erie Canal".