A two-time gold medalist and the first African man to win an Olympic swimming gold, Mellouli, 32, said he is "calm" and "optimistic" that he can win one last medal.
"With the Olympics, I'm going to something I know well. For the young ones, it will be different," he said.
"Eat, swim, sleep, repeat – that's the rhythm of an athlete. You shouldn't think of anything but that."
After competing in Sydney in 2000 and Athens in 2004, Mellouli won the 1 500 metres title at the 2008 Beijing Games.
He made African history just three months after returning from an 18-month ban after testing positive for a stimulant in late 2006. Mellouli said it was a substance to help stay awake while studying. He lost two world titles because of the ban.
Four years later at the London Olympics, he snatched a bronze in 1 500m
And despite a virus that left him vomiting in his hotel room just days before the 10-kilometre swimming marathon, he headed to the Serpentine lake in Hyde Park determined to compete.
Under blazing sun, he beat Germany's Thomas Lurz to gold in a time of 1hr 49min 55.1sec.
That made him the first swimmer to win Olympic golds in both pool and open water competitions.
'ATHLETES ARE DREAMERS'
"Ninety-nine percent of athletes are dreamers," he said. "From the moment the dream is in our spirit, we strive for it. For me, it's been like that since I was 16," said Mellouli, who comes from La Marsa on the coast near Tunis.
Mellouli had to think seriously, including in a six month retreat, before launching into this Olympic campaign.
He said he wants to accomplish his Olympic dream for his family, particularly his mother Khadija, and the people who have accompanied him throughout his career.
"In Tunis, Marseille, Font-Romeu, in the United States – I've had the chance to work with exceptional people who have pushed me to win these prizes," he said.
Despite his previous victories, he has not yet decided whether to compete in the pool or just focus on the marathon – just the third in the history of the Games.
"The 1 500 metres is three days before the 10 kilometres. Competing could affect my freshness," he said.
Mellouli has mostly trained in California for the last 15 years, but keeps strong ties to Tunisia.
Dictator Zine El Abidine Ben Ali made much of Mellouli's success, and the swimmer was accused of being close to the regime.
It was a perception Mellouli was keen to shake off when the regime fell in 2011.