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.

Man sentenced for two separate dangerous pursuits
Back to back wins lifts Whites out of Drop Zone
Free Physiotherapy Career Consultations on Offer from Top Local Clinic
Wiltshire Police Collects Mountain of Bras to Support Breast Cancer Charity
St. Martin’s Primary School Nursery Opens its Doors to First Pupils
Annual Corporate Gala Quiz Raises Thousands for Salisbury Hospice Charity
An Audience with Mark Dawson to Raise Funds for St Peter's Church Project
Child Assaulted by Masked Males in Tidworth

