The 41-year-old actor appeared on ABC's "Jimmy Kimmel Live" on Thursday and spoke about the sacrifices he made to get ripped for his upcoming movie.

"You work out every day and you sort of learn to enjoy it, but the diet is the hardest thing," Nanjiani said. "I have not had pizza or a donut in over a year. I've had no refined sugar in a year, I've had almost no carbs at all."

Elaborating on how difficult it was to avoid unhealthy foods, the actor said: "You know what my snack is? I get a bag of sugar snap peas and I eat them. That's what I've been doing at night when I'm like, 'I'm a little hungry. I'm going to treat myself.'"

Nanjiani told Kimmel that he got back from filming two days prior and was looking forward to finally getting to indulge in whatever treats he wanted. Then, a mobile of sugary desserts appeared in front of him and he was given a box of pizza.

Kumail Nanjiani was delighted when Jimmy Kimmel presented him with a mobile filled with treats.
ABC

"Are you serious? Are you joking? Oh my God. This is for me?" the actor said, in pure shock. "I'm literally going to cry right now. I'm not joking."

Nanjiani then bit into a slice of pizza and said, "I'm shaking," before sampling the other treats.

But the actor didn't stop there. As the interview continued and Kimmel asked the "Big Sick" star about Apple TV Plus' "Little America," which he executive produced, Nanjiani kept eating and could barely focus on the questions.

Nanjiani spoke about the show between bites and lost his train of thought, saying: "What are we talking about?"

Kimmel went on to say that he's never had a guest eat throughout the duration of an interview and in response, Nanjiani said: "You don't understand. I'm shaking. I'm so excited. My heart is beating so fast."