Kautilya (also known as Chanakya), the author of Arthashastra and advisor to Chandragupta, advocated that in emergencies (war, famine, calamity), the king could appropriate funds from temple treasuries. The Arthashastra explicitly discusses the doctrine of 'apad-dharma' (duty in times of emergency) which permits extraordinary measures including using religious wealth for state welfare.