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.

Burglar who targeted vulnerable elderly women is jailed
Stars Appeal launches Christmas Raffle
ALABARÉ Veterans take on polo lessons to improve well-being
Bemerton St John Makes History with First-Ever Primary School Salisbury Junior Parkrun Takeover
6th Form Media Students Collaborate to Launch Bridge Project Fundraiser
Severe Weather Emergency Protocol activated in Wiltshire
Wiltshire Council shares advice on how you can help rough sleepers this winter
Song for Christmas Dates Confirmed
