Starting with Peroz I ( ), the shahs of the Sassanid Empire built a line of stone fortifications to protect the vulnerable frontier along the Caspian shore; when completed under Khosrau I ( ), this stretched over 45 kilometers from the eastern foothills of the Caucasus to the Caspian Sea.