 He was elected to the city council in 1852 and served as captain in the local militia.Ryan also was a member of the Council of the Board of Trade in Montreal and a director for the Montreal, Ottawa and Occidental Railway.Following the assassination of Liberal-Conservative Member of Parliament Thomas D'Arcy McGee in April 1868, Ryan was selected by the party to run in the ensuing by-election.