In algebraic geometry and commutative algebra, the Zariski topology is a topology on algebraic varieties, introduced primarily by Oscar Zariski and later generalized for making the set of prime ideals of a commutative ring a topological space, called the spectrum of the ring. In algebraic geometry and commutative algebra, the Zariski topology is a topology on algebraic varieties, introduced primarily by Oscar Zariski and later generalized for making the set of prime ideals of a commutative ring a topological space, called the spectrum of the ring. The Zariski topology allows tools from topology to be used to study algebraic varieties, even when the underlying field is not a topological field. This is one of the basic ideas of scheme theory, which allows one to build general algebraic varieties by gluing together affine varieties in a way similar to that in manifold theory, where manifolds are built by gluing together charts, which are open subsets of real affine spaces. The Zariski topology of an algebraic variety is the topology whose closed sets are the algebraic subsets of the variety. In the case of an algebraic variety over the complex numbers, the Zariski topology is thus coarser than the usual topology, as every algebraic set is closed for the usual topology. The generalization of the Zariski topology to the set of prime ideals of a commutative ring follows from Hilbert's Nullstellensatz, that establishes a bijective correspondence between the points of an affine variety defined over an algebraically closed field and the maximal ideals of the ring of its regular functions. This suggests defining the Zariski topology on the set of the maximal ideals of a commutative ring as the topology such that a set of maximal ideals is closed if and only if it is the set of all maximal ideals that contain a given ideal. Another basic idea of Grothendieck's scheme theory is to consider as points, not only the usual points corresponding to maximal ideals, but also all (irreducible) algebraic varieties, which correspond to prime ideals. Thus the Zariski topology on the set of prime ideals (spectrum) of a commutative ring is the topology such that a set of prime ideals is closed if and only if it is the set of all prime ideals that contain a fixed ideal. In classical algebraic geometry (that is, the part of algebraic geometry in which one does not use schemes, which were introduced by Grothendieck around 1960), the Zariski topology is defined on algebraic varieties. The Zariski topology, defined on the points of the variety, is the topology such that the closed sets are the algebraic subsets of the variety. As the most elementary algebraic varieties are affine and projective varieties, it is useful to make this definition more explicit in both cases. We assume that we are working over a fixed, algebraically closed field k (in classical geometry k is almost always the complex numbers). First we define the topology on affine spaces A n , {displaystyle mathbb {A} ^{n},} which as sets are just n-dimensional vector spaces over k. The topology is defined by specifying its closed sets, rather than its open sets, and these are taken simply to be all the algebraic sets in A n . {displaystyle mathbb {A} ^{n}.} That is, the closed sets are those of the form where S is any set of polynomials in n variables over k. It is a straightforward verification to show that: It follows that finite unions and arbitrary intersections of the sets V(S) are also of this form, so that these sets form the closed sets of a topology (equivalently, their complements, denoted D(S) and called principal open sets, form the topology itself). This is the Zariski topology on A n . {displaystyle mathbb {A} ^{n}.} If X is an affine algebraic set (irreducible or not) then the Zariski topology on it is defined simply to be the subspace topology induced by its inclusion into some A n . {displaystyle mathbb {A} ^{n}.} Equivalently, it can be checked that: