 His grandfather, Andrew, served in the American Revolution as a brigadier general in the Maryland Militia.He was the nephew by marriage of President John Quincy Adams; his mother's sister was First Lady Louisa Adams.Buchanan received his appointment to United States Military Academy at West Point during Adams' administration and graduated in 1830.