The Prime Directive was a Federation, as well as Lyran, Starfleet directive that prohibited Starfleet from interfering in the internal affairs of any civilization, especially pre-warp civilizations, lest the contact disrupt the natural development of the civilization. (TOS: "Bread and Circuses", et al.)
In 2410, Kanril Eleya cited the Prime Directive, along with Federation laws against cloaking device research, as reasons for not giving said technology to the Klingon-Cardassian Alliance. However, she reasoned that giving the Alliance techniques to defeat Terran Starfleet cloaks did not violate the law. (Bait and Switch: The Wrong Reflection)
The Lyran Starfleet Prime Directive was somewhat less restrictive than the Federation counterpart; when recovering sensitive equipment or personnel, such as prisoners of war, Starfleet personnel could interfere with internal affairs. (Star Trek: The Stoneship Files: "Alcoholic Massacre, Part I")
Original Series producer Gene L. Coon is credited with the invention of the Prime Directive, but is said to have meant for it to be applied only to viable, pre-warp civilizations.