In the present study, a pot experiment was conducted to investigate the response of rosemary (Rosmarinus officinalisL.) plants to foliar application ofSpirulina platensisat 0.0, 0.1, 0.2, and 0.4%; soil irrigation with heavy metals (Cd nitrate, Pb acetate, and Cd + Pb, each at 100 ppm), andSpirulina platensisat 0.1% + heavy metals.Spirulina platensissignificantly improved growth parameters, oil yield/fed, photosynthetic pigments, and activity of superoxide dismutase (SOD), glutathione reductase (GR), catalase (CAT), and polyphenol oxidase (PPO) with a maximum promoting effect at 0.2% algal extract. On the other hand, heavy metal stress reduced growth criteria, photosynthetic pigments, and oil yield, while, significantly increased levels of antioxidant enzymes (SOD, CAT, GR) and corresponding non-enzymatic antioxidants (ascorbic acid, total antioxidant capacity, phenolics and flavonoids). Bioaccumulation factor (BF) and translocation factor (TF) indicated that Cd and Pb accumulated largely in the roots, with little transfer to the shoots. Nevertheless, compared with heavy metal treatments,S. platensisat 0.1% significantly increasing growth parameters, oil content, photosynthetic pigments, and the activity of non-enzymatic and enzymatic antioxidants, while, slightly reduced TF of Cd and Pb, alleviated membrane lipid peroxidation, and significantly lowered the content of malondialdehyde, hydrogen peroxide, and indole acetic acid oxidase (IAAO) activity in heavy metal (Cd, Pb, and Cd + Pb)-treated rosemary plants.