Gnosticism encompasses a diverse set of ancient religious beliefs that emphasized secret spiritual Knowledge (gnosis) as the means to salvation. Adherents often posited a radical dualism between the perfect, transcendent God and the flawed material world, which they believed was created by a lesser, malevolent deity known as the Demiurge.