The Weekday brand owned by H&M, a popular high street budget fashion store, had released a small line of t-shirts bearing the slogan "Food to the Poor. No world hunger," followed by the politician's name: Juan Manuel Sanchez Gordillo.
Sanchez, mayor of the village of Marinaleda in Andalucia, has become a controversial cult figure after he endorsed the looting of two supermarkets last month by activists who gave out the food to the needy.
The shirt, part of a line of topical designs by Weekday, sparked controversy despite being for sale in relatively small numbers, and prompted the company to apologize.
Spanish media saw irony in a global brand championing Sanchez, whose protests have challenged big businesses.
"With regard to the t-shirt that alludes to the mayor of Marinaleda, Juan Manuel Sanchez Gordillo, the Weekday brand has decided to withdraw any samples that may still be on sale," H&M Spain said in a statement on Monday.
"It was never Weekday's intention to take a position" on Sanchez's politics, the statement added.
"It is sorry if any of its clients was offended by the design."