Law in Star Trek refers to the legal procedures and processes as seen in the Star Trek fictional universe. A fictional universe is a self-consistent fictional setting with unique background elements such as an imaginary history or geography and possibly fantasy or science In several TV episodes and films since its inception in the 1960s, Star Trek has used fictional legal constraints and consequences as a plot device both as a parable for contemporary society in the real world, and to explore the society and politics of the future. 
A discussion of this subject by Paul Joseph and Sharon Carton in the University of Toledo Law Review drew particular attention, since it examined how this fictional set of laws dealt with controversial issues in current American law, such as the right to life and privacy, as well as rights to sexual orientation. Right to life is a phrase that describes the belief that a Human being has an essential Right to live particularly that a human being has the right not to be Privacy is the ability of an individual or group to seclude themselves or information about themselves and thereby reveal themselves selectively Sexual orientation is believed to refer to "an enduring pattern of emotional romantic and/or sexual attractions to men women or both sexes  The details and application of these laws, and the ways in which these reflect real-world legal systems were further examined in the books Adventures in Law and Justice: exploring big legal questions in everyday life by Bryan Horrigan and Star Trek Visions of Law and Justice edited by Robert Chaires and Bradley Chilton. The book by Chaires and Chilton highlighted in particular the possibility of applying this comparison between law and a part of popular culture to the teaching of national and international law.