Declining a Cabinet position, Hanna secured appointment as senator from Ohio after Sherman was made Secretary of State; he was re-elected by the Ohio General Assembly in 1898 and 1904. After McKinley's assassination in 1901, Senator Hanna worked for the building of a canal in Panama, rather than elsewhere in Central America, as had previously been proposed. He died in 1904, and is remembered for his role in McKinley's election, thanks to savage cartoons by such illustrators as Homer Davenport, who lampooned him as McKinley's political master.