A handshake wasn't enough for two neighbours embroiled in a lengthy and bitter feud sparked by complaints over barking dogs - the two actually signed a peace treaty.

The three-year battle began when one of the men complained to the police in Johor, where they lived, about his neighbour's noisy dogs, The Star newspaper reported.

The dog owner retaliated by playing loud music at night, throwing cans of paint into his neighbour's house and driving his car into the gate. His neighbour filed a counter complaint about the music.

When both men decided to end the feud recently, they opted for a signed peace deal or "memorandum of understanding" to keep each other in check.

One of the main points in the peace deal, brokered by a public complaints bureau, is that the dog owner has to find a way to minimise barking at night.

"If either of the two men decides to break the memorandum of understanding, the other can bring this document and present it either to the police or in court," said mediator Michael Tay.

"I hope both men can live in peace with each other."

- Reuters