Yemelyan Pugatchev was executed on a town square in Moscow, not in a dungeon as shown in the movie. Furthermore in the movie he was executed alone while in real life his henchmen were killed as well.
In real life Yemelyan Pugatchev received an actual trial before he was killed. In the movie however Katharina II just declared him to death.