From outer to innermost, the four layers of the sclera are:

episclera
stroma
lamina fusca
endotheliumThe sclera is opaque due to the irregularity of the Type I  collagen fibers, as opposed to the near-uniform thickness and parallel arrangement of the corneal collagen. Moreover, the cornea bears more mucopolysaccharide (a carbohydrate that has among its repeating units a nitrogenous sugar, hexosamine) to embed the fibrils. The cornea, unlike the sclera, has five layers. The middle, thickest layer is also called the stroma. The sclera, like the cornea, contains a basal endothelium, above which there is the lamina fusca, containing a high count of pigment cells.Sometimes, very small gray-blue spots can appear on the sclera, a harmless condition called scleral melanocytosis. Function
Human eyes are somewhat distinctive in the animal kingdom in that the sclera is very plainly visible whenever the eye is open. This is not just due to the white color of the human sclera, which many other species share, but also to the fact that the human iris is relatively small and comprises a significantly smaller portion of the exposed eye surface compared to other animals. It is theorized that this adaptation evolved because of our social nature as the eye became a useful communication tool in addition to a sensory organ. It is believed that the conspicuous sclera of the human eye makes it easier for one individual to identify where another individual is looking, increasing the efficacy of this particular form of nonverbal communication, called cooperative eye hypothesis.
The sclera is perforated by many nerves and vessels passing through the posterior scleral foramen, the hole that is formed by the optic nerve. At the optic disc the outer two-thirds of the sclera continues with the dura mater (outer coat of the brain) via the dural sheath of the optic nerve. The inner third joins with some choroidal tissue to form a plate (lamina cribrosa) across the optic nerve with perforations through which the optic fibers (fasciculi) pass. The thickness of the sclera varies from 1 mm at the posterior pole to 0.3 mm just behind the rectus muscle insertions. The scleras blood vessels are mainly on the surface. Along with the vessels of the conjunctiva (which is a thin layer covering the sclera), those in the episclera render the inflamed eye bright red.In many vertebrates, the sclera is reinforced with plates of cartilage or bone, together forming a circular structure called the sclerotic ring. In primitive fish, this ring consists of four plates, but the number is lower in many living ray-finned fishes, and much higher in lobe-finned fishes, various reptiles, and birds. The ring has disappeared in many groups, including living amphibians, some reptiles and fish, and all mammals.The eyes of all non-human primates are dark with small, barely visible sclera. Histology
The collagen of the sclera is continuous with the cornea.