The meninges (singular meninx) is the system of membranes which envelop the central nervous system. The meninges consist of three layers: the dura mater, the arachnoid mater, and the pia mater. The primary function of the meninges and of the cerebrospinal fluid is to protect the central nervous system.