An algebraic variety is called a complete intersection if its defining ideal is generated by codimension many polynomials.
A Noetherian local ring $R$ is called a complete intersection if its completion is the factor ring of a regular local ring by a regular sequence.
What is the connection between these two definitions?