Utopia is a name for an imaginary community or society with a perfect system of laws and politics.
Sir Thomas More invented the word for his 1516 book Utopia. The book was about a fictional island in the Atlantic Ocean. The word has been used to describe both a perfect society, and societies in literature. A related idea is dystopia.