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.

Salisbury Sweep Taunton Aside as they Progress in FA Cup
Salisbury all Set for All the Fun of the Charter Fair
New Army accommodation completed at Upavon
Stars Appeal’s Walk for Wards raises record-breaking total for second consecutive year
Appeal for witnesses following assault in Salisbury
Man pleads not guilty in relation to triple fatal collision
Salisbury Foodbank Issues Urgent Call For Support
Review: The Haunting of Hill House
