The young prince visited the factory on Castleford’s Whitwood Common Lane as part of his two-day whistle-stop tour of West Yorkshire.
He was given a guided tour of the £92 million factory, which opened in 2015, by Haribo UK managing director Herwig Vennekens, and chatted with workers.
He was also then given his own box of personal Haribo - Harry Mix - made up of jelly sweets in the mould of his face.
A batch of the sweets, which will not be put into production, were made just for the day.
“He tried a few sweets and we gave him his own personal box of sweets, you could see he was very surprised by it,” said managing director Herwig Vennekens.
“The day went brilliantly, a lot of people were happy and excited to meet him.
“He took the time to meet them and talk with them and you could tell by the workers’ reactions how they felt.
“People say he is very down to earth and he was. He was very genuine.
“We only learned he was coming here recently so we had to quickly make sure it was a fantastic day, and it was.”
When the prince was given his own box of sweets he joked: “You realise you’ve got far too much time on your hands!
“Thank you very much, I will do my best to eat them all, it would be a bit weird sharing these I think!”
The popular prince also made quite an impression on staff members.
Machine operator Morag Bland, from Featherstone, spoke with him for a few minutes. She said: “He is amazing, really down to earth.
“He just seemed so approachable, he wasn’t stand-offish or anything like that, you could really talk to him.
“I asked him what his favourite sweet was and he said it was difficult but if he had to choose one it would be the cola bottles.”
Chris Ward, also a machine operator, from Pontefract was equally impressed.
“It was like talking to one of the lads, one of the workforce, he was brilliant.
“He was really interested in how it all works and asked us if we had any children and whether we took sweets home for them.”