In prison, Bhagat Singh wrote extensively, producing works like "The Jail Notebook," which is a testament to his intellectual and philosophical growth. He also became a close friend of fellow prisoner, Batukeshwar Dutt, with whom he would later undertake a hunger strike.