In most countries, it is not explicitly illegal for three or more people to form and share a sexual relationship (subject sometimes to laws against homosexuality), though such relational forms risk running afoul of state or local ordinances banning unmarried cohabitation.