What's the middle layer of the arteries do?

Muscle layers. Make up the middle layer of an artery which is called the media. The muscles are responsible for contraction and dilitation of the vessel to alter blood flow as needed.