In the United States, many U.S. states historically had anti-miscegenation laws which prohibited interracial marriage and, in some states, interracial sexual relations. Some of these laws predated the establishment of the United States, and some dated to the later 17th or early 18th century, a century or more after the complete racialization of slavery. Nine states never enacted anti-miscegenation laws, and 25 states had repealed their laws by 1967. In that year, the U.S. Supreme Court ruled in Loving v. Virginia that such laws are unconstitutional under the Fourteenth Amendment to the U.S. Constitution.

The term miscegenation was first used in 1863, during the American Civil War, by journalists to discredit the abolitionist movement by stirring up debate over the prospect of interracial marriage after the abolition of slavery.

Typically defining mixed-race marriages or sexual relations as a felony, these laws also prohibited the issuance of marriage licenses and the solemnization of weddings between mixed-race couples and prohibited the officiation of such ceremonies. Sometimes, the individuals attempting to marry would not be held guilty of miscegenation itself, but felony charges of adultery or fornication would be brought against them instead. All anti-miscegenation laws banned marriage between whites and non-white groups, primarily black people, but often also Native Americans and Asian Americans.

In many states, anti-miscegenation laws also criminalized cohabitation and sex between whites and non-whites. In addition, Oklahoma in 1908 banned marriage "between a person of African descent" and "any person not of African descent"; Louisiana in 1920 banned marriage between Native Americans and African Americans (and from 1920 to 1942, concubinage as well); and Maryland in 1935 banned marriages between black people and Filipinos. (See version of article in the USC Digital collection) While anti-miscegenation laws are often regarded as a Southern phenomenon, most states of the Western United States and the Great Plains also enacted them.

Although anti-miscegenation amendments were proposed in the United States Congress in 1871, 1912–1913, and 1928,, archived from the original on 2006-08-12. a nationwide law against mixed-race marriages was never enacted. Prior to the California Supreme Court's ruling in Perez v. Sharp (1948), no court in the United States had ever struck down a ban on interracial marriage. In 1967, the United States Supreme Court (the Warren Court) unanimously ruled in Loving v. Virginia that anti-miscegenation laws are unconstitutional. After Loving, the remaining state anti-miscegenation laws were repealed; the last state to repeal its laws against interracial marriage was Alabama in 2000.

Colonial era The first laws which criminalized marriages and sexual relations between whites and non-whites were enacted in the colonial era in the colonies of Virginia and Maryland, which depended economically on slavery.

At first, in the 1660s, the first laws in Virginia and Maryland regulating marriage between whites and black people only pertained to the marriages of whites to black (and mulatto) enslaved people and indentured servants. In 1664, Maryland criminalized such marriages—the 1681 marriage of Irish-born Nell Butler to an enslaved African man was an early example of the application of this law. The Virginian House of Burgesses passed a law in 1691 forbidding free black people and whites to intermarry, followed by Maryland in 1692. This was the first time in American history that a law was invented that restricted access to marriage partners solely on the basis of "race", not class or condition of servitude. Later these laws also spread to colonies with fewer enslaved and free black people, such as Pennsylvania and Massachusetts. Moreover, after the independence of the United States had been established, similar laws were enacted in territories and states which outlawed slavery.

A sizable number of the indentured servants in the Thirteen Colonies were brought over from the Indian subcontinent by the East India Company. Anti-miscegenation laws discouraging interracial marriage between White Americans and non-whites affected South Asian immigrants as early as the 17th century. For example, a daughter born to an Indian father and Irish mother in Maryland in 1680 was classified as a "mulatto" and sold into slavery. Anti-miscegenation laws there continued into the early 20th century. For example, the Bengali revolutionary Tarak Nath Das's white American wife, Mary Keatinge Morse, was stripped of her American citizenship for her marriage to an "alien ineligible for citizenship." In 1918, there was considerable controversy in Arizona when an Indian farmer B. K. Singh married the sixteen-year-old daughter of one of his white tenants.

In 1685, the French government issued a special Code Noir restricted to colonial Louisiana, which forbade marriage between Catholics and non-Catholics in that colony. However, interracial cohabitation and interracial sex were never prohibited in French Louisiana (see plaçage). The situation of the children (free or enslaved) followed the situation of the mother.{fr} A. Mérignhac, Précis de législation & d'économie coloniales, librairie de la société du recueil Sirey, Paris 1912, p. 45 Under Spanish rule, interracial marriage was possible with parental consent under the age of 25 and without it when the partners were older. In 1806, three years after the U.S. gained control over the state, interracial marriage was once again banned.Kimberly S. Hanger, Bounded Lives, Bounded Places: Free Black Society in Colonial New Orleans, 1769–1803. Durham N.C., and London: Duke University Press, 1997.

After independence In 1776, seven of the Thirteen Colonies enforced laws against interracial marriage. Although slavery was gradually abolished in the North after independence, this at first had little impact on the enforcement of anti-miscegenation laws. An exception was Pennsylvania, which repealed its anti-miscegenation law in 1780, together with some of the other restrictions placed on free Black people, when it enacted a bill for the gradual abolition of slavery in the state.

The Quaker planter and slave trader Zephaniah Kingsley, Jr. publicly advocated, and personally practiced, racial mixing as a way toward ending slavery, as well as a way to produce healthier and more beautiful offspring. These views were tolerated in Spanish Florida, where free people of color had rights and could own and inherit property. After Florida became a U.S. territory in 1821, he moved with his wives, children, and his slaves, to Haiti.

Another case of interracial marriage was Andrea Dimitry and Marianne Céleste Dragon, a free woman of African and European ancestry. Such marriages gave rise to a large creole community in New Orleans. She was listed as white on her marriage certificate. Marianne's father, Don Miguel Dragon, and mother, Marie Françoise Chauvin Beaulieu de Monpliaisir, also married in New Orleans Louisiana around 1815. Marie Françoise was a woman of African ancestry. Marie Françoise Chauvin de Beaulieu de Montplaisir and her mother Marianne Lalande were originally slaves belonging to Mr. Charles Daprémont de La Lande, a member of the Superior Council.

For the radical abolitionists who organized to oppose slavery in the 1830s, laws banning interracial marriage embodied the same racial prejudice that they saw at the root of slavery. Abolitionist leader William Lloyd Garrison took aim at Massachusetts' legal ban on interracial marriage as early as 1831. Anti-abolitionists defended the measure as necessary to prevent racial amalgamation and to maintain the Bay State's proper racial and moral order. However some abolitionists notably in Indiana, Michigan and Maine associated supporting miscegenation laws as a reason to oppose slavery. Some Abolitionists, however, objected that the law, because it distinguished between "citizens on account of complexion" and violated the broad egalitarian tenets of Christianity and republicanism as well as the state constitution's promise of equality. Beginning in the late 1830s, abolitionists began a several-year petition campaign that prompted the legislature to repeal the measure in 1843. Their efforts—both tactically and intellectually—constituted a foundational moment in the era's burgeoning minority-rights politics, which would continue to expand into the 20th century.Kyle G. Volk, Moral Minorities and the Making of American Democracy (Oxford University Press, 2014), 104–116. As the U.S. expanded, however, all the new slave states as well as many new free states such as IllinoisSteiner, Mark. "The Lawyer as Peacemaker: Law and Community in Abraham Lincoln's Slander Cases" . The History Cooperative and Californiaenacted similar anti-miscegenation laws."Chinese Laborers in the West" Smithsonian Asian Pacific American Program enacted such laws.

While opposed to slavery, in a speech in Charleston, Illinois in 1858, Abraham Lincoln stated, "I am not, nor ever have been in favor of making voters or jurors of negroes, nor of qualifying them to hold office, nor to intermarry with white people".

Arkansas, Florida, Louisiana, Mississippi, Texas, South Carolina, and Alabama legalized interracial marriage for some years during the Reconstruction period. Anti-miscegenation laws rested unenforced, were overturned by courts or repealed by the state government (in ArkansasRobinson II, Charles F., University of Arkansas, Fayetteville . The Encyclopedia of Arkansas History & Culture. (accessed January 4, 2007). and Louisiana). However, after white Democrats took power in the South during "Redemption", anti-miscegenation laws were re-enacted and once more enforced, and in addition Jim Crow laws were enacted in the South which also enforced other forms of racial segregation.Wallenstein, Peter, Tell the Court I love my wife

In the 1870s and 1880s, the state of Tennessee repeatedly prosecuted and incarcerated David Galloway and Malinda Brandon for their interracial marriage. Tennessee Republicans passed a resolution supporting Galloway's right to marry at their 1874 political convention. In Florida, the new Constitution of 1885 prohibited marriage between "a white person and a person of negro descent" (Article XVI, Section 24).

The first anti miscegenation law in Oregon was passed in 1866. It stated that "all marriages of white persons with Negroes, Chinamen, or mulattoes are void, and are prohibited," effectively prohibiting interracial marriages involving African Americans, Chinese individuals, and individuals of mixed race. Oregon's miscegenation laws specifically prohibited marriages between white individuals and individuals of "Mongolian" or Asian descent. These laws aimed to reflect the prevailing racial prejudices and discriminatory attitudes of the time.

In 1909, Aoki and Helen Emery, an interracial couple were denied a marriage license in California due to laws prohibiting marriage between Japanese and Caucasian individuals. They then traveled to Portland, Oregon, hoping to obtain a marriage license there but were again denied based on similar racial restrictions.

A number of northern and western states permanently repealed their anti-miscegenation laws during the 19th century. This, however, did little to halt anti-miscegenation sentiments in the rest of the country.

Slavery in Brazil continued until nearly the year 1900. On a largely interracial basis. Slavery in Africa and middle eastern countries likewise.

Newly established western states continued to enact laws banning interracial marriage in the late 19th and early 20th centuries. Between 1913 and 1948, 30 out of the then 48 states enforced anti-miscegenation laws. Only Connecticut, New Hampshire, New York, New Jersey, Vermont, Wisconsin, Minnesota, Alaska, Hawaii, and Washington, D.C. never enacted them.

High court decisions, 1883–1954