TORRELODONES, Spain—The stench of raw sewage was Elena Biurrun's political wake-up call.

The stay-at-home mom became a civic gadfly after local authorities refused to fix a broken sewer pipe, and one cause led to another: She formed a group to defend a forest against real-estate developers. After six years of fighting Town Hall, Ms. Biurrun was elected mayor.

Two...