Ofcom's Broadcasting Code governs what can be aired on TV and radio.
It's the rule book for TV channels and radio stations and sets standards for programmes which broadcasters have to follow.
The Code exists to protect viewers and listeners from harmful and offensive content but also ensures that broadcasters have the freedom to make challenging programmes.
For example, broadcasters can transmit provocative material – even if some people consider it offensive – as long as it’s editorially justified and the audience is given appropriate information.
The Code covers other areas like impartiality and accuracy, sponsorship and product placement as well as fairness and privacy.