Sikander Lodi made Agra his capital in 1506, shifting the capital from Delhi.