 He retired as a captain of Cavalry on July 1, 1868 for disabilities incurred in the line of service.After his retirement from the military, McDonald settled in Maryland and was elected as a Republican to the Maryland House of Delegates in 1881.He was later elected to the Fifty-fifth Congress, and served from March 4, 1897 to March 3, 1899.