Cyanide primarily exerts its toxic effects by inhibiting the enzyme cytochrome c oxidase in the mitochondrial electron transport chain. This enzyme is crucial for cellular respiration and energy production. By blocking this enzyme, cyanide prevents the cells from utilizing oxygen, leading to a rapid decrease in ATP production and causing cellular hypoxia.