We investigate ann-simplex generalization of the classical and quantum Yang-Baxter equation. For the case ofsl(2) we find the most general solution of the classicaln-simplex equation for alln. These classical solutions can be quantized (in the sense of quantum group theory) forn=2,3 and we exhibit a quantum solution to the tetrahedron equations (n=3). The classical nondegenerate solutions cannot be quantized forn=4.