The geological process by which the tectonic plates separate from each other in the seabed allowing the rise of magma is known as sea floor spreading.
In this process, magma comes into contact with cold water and solidifies rapidly, generating a ridge at the bottom of the ocean, as is shown in the image.