The writers had advisors who had worked within the government and many of the stories were based on real situations. For example, in Yes Minister: The Moral Dimension (1982) they go to an arab state where alcohol is not allowed and so they set up a "communications room" in the embassy where they keep a stash of booze so they could slip out and have a drink. This really happened.
A great fan of the series, Prime Minister Margaret Thatcher (as she then was) wrote a sketch for the show with press secretary Bernard Ingham which was recorded and aired as part of the 1984 National Viewers and Listeners Awards. The sketch featured Paul Eddington and Nigel Hawthorne, both of whom are talking to the Prime Minister (played by Thatcher herself) about her notion to abolish economists.
The role of James Hacker was written with Paul Eddington in mind.
Only three episodes in the series - Yes Minister: The Economy Drive (1980); Yes Minister: Big Brother (1980); and Yes Minister: The Right to Know (1980) - did not end with the phrase "Yes Minister."
Paul Eddington, Nigel Hawthorne and Derek Fowlds all hated having to record the show in front of a studio audience (as was the convention for television sitcoms at the time) due to the distraction and often having to pause for audience laughter to die down.
Screenwriters Antony Jay and Jonathan Lynn avoided all references that could indicate Hacker's political party, though Lynn later admitted they had always imagined him as a centre minded Conservative.
Ronnie Hazlehurst's theme-tune is composed around the chimes of Big Ben at the Palace of Westminster.
The British Film Institute (BFI) named this as one of the top ten television programmes of all time.