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.

Local vet reduced to tears by support shown to assist setting up new practice
Injury Time Leveller Denies Salisbury All Three Points
Salisbury's local radio station comes home
Wiltshire Conservatives call for urgent Government action over potential fire station closures
Nearly 100 arrested as South West police forces unite to tackle illegal drugs and child criminal exploitation
Rockbourne Fair celebrates another record-breaking year
Collaboration between Police and CCTV put prolific shoplifters behind bars
Tiny Titans Opening at Longleat for Easter
