The toxicity of oleander is primarily due to the presence of cardiac glycosides, particularly oleandrin and neriine. These compounds are similar to digoxin, a medication used to treat heart conditions, but in oleander, they are present in much more potent, uncontrolled doses. Cardiac glycosides interfere with the sodium-potassium pump in heart cells, leading to potentially fatal cardiac arrhythmias.