 In 1861 he formed a partnership with George W. Houk, which lasted 19 years.He was elected to the Forty-fourth, Forty-fifth, and Forty-sixth United States Congresses, from 1875 until 1881.McMahon was appointed by the House of Representatives as a manager to conduct impeachment proceedings against Secretary of War William W. Belknap.