Jon Stewart has appeared on Egypt's top satirical TV program, modeled after his own program "The Daily Show."
Stewart was brought to the set wearing a black hood and introduced by host Bassem Youssef as a captured foreign spy.
Stewart, wearing a scruffy beard, spoke briefly in Arabic as the studio audience gave him a raucous welcome.
"Please sit down, I am a simple man who does not like to be fussed over," he said in Arabic to laughter.
Youssef has been questioned by prosecutors on accusations of blasphemy and insulting the president.
"Satire is a settled law. If your regime is not strong enough to handle a regime, then you have no regime," Stewart told Youssef.
Friday's episode was recorded earlier this week when Stewart was visiting.