Kurnool was the capital of Andhra state and the state high court was established at Guntur.