Mr Daifallah is accused of leaving a "trail of stench" with his actions
A man sprayed a mixture of urine and faeces in two supermarkets, a pub and a bookshop in Gloucestershire, a jury at Bristol Crown Court has heard.
Sahnoun Daifallah, 42, of Bibury Road, Gloucester, is alleged to have caused damage estimated at £700,000 last May.
Mr Daifallah pleaded not guilty to four charges of contaminating goods and two of damaging property.
He also denied possession of material to contaminate goods and possession of an offensive weapon.
The court heard he visited the Air Balloon pub near the village of Birdlip on 14 May 2008 where police were called after he asked a barmaid how much it would cost to rape her.
When officers arrived Mr Daifallah was no longer there but he had left a "trail of stench" behind him, the court was told.
Stephen Dent, prosecuting, told the jury: "This was his little calling card because he did not like the way he had been treated."
He then moved on to Waterstones bookstore in Cirencester where it is alleged he sprayed the substance from a spray container all over a toilet in the coffee shop. In total 706 books were contaminated.
On 16 May 2008 Mr Daifallah is said to have visited Tesco in Quedgeley where a shopper noticed him acting suspiciously with a laptop bag in the frozen food aisle.
The prosecution told the court a customer saw Mr Daifallah reach into his bag and produce a jet of fluid which smelt like urine over the frozen chips.
He then moved on to the wine section where a member of staff saw a fine vapour come out of his bag and on to the wine, leaving brown fluid over the shelves, the court heard.
The store was closed for two days for cleaning.
He is then alleged to have driven to Morrisons in Abbeydale.
An employee saw Mr Daifallah acting strangely in the wine section.
He said Mr Daifallah "absolutely stunk" and that he had to stop himself from gagging because of the strong smell of ammonia and urine.
The trial continues.
Sahnoun Daifallah is accused of spraying urine and faeces around two supermarkets, a pub and a bookshop.