Former Salisbury City Councillor Mark Mewse, 64, has stepped down, offering heartfelt apologies to the residents he once served.
Mewse was found guilty of harassment at Salisbury Magistrates Court last month.
The hearing heard details of Mewse's attempts to win back an ex's affections by buying gifts her cats.
The court heard how Mewse unleashed a barrage of messages upon his former partner.
Mewse, of Cranesbridge Road, was the councillor for Stratford and St Francis on Salisbury City Council.
A by-election will be held to elect a new councillor.

Wiltshire Council strengthens commitment to tackling violence against women and girls
A second look could save a life - motorists urged to look again for bikers
World Cup campaign sees reduction in drink drive offences and increase in domestic abuse reporting
Trek the Sahara Desert in support of Salisbury Hospital’s Stars Appeal
Motorcyclist sustains serious injuries following collision on A30
Local clothing store Daliz brings an afternoon of free live music to Salisbury
Cast Announced for Haunting of Hill House Salisbury Playhouse Production
Salisbury City Council announce plans to celebrate Salisbury 800
