 Ritchie was born in or close to Glasgow and came to Boston, Massachusetts in 1770, moving to Annapolis Royal, Nova Scotia several years later.Around 1775, he married Alicia Maria Le Cain.He joined the militia company formed at the start of the American Revolution, becoming captain in 1779.