Gandhi frequently used fasting as a form of non-violent protest or satyagraha against British policies and social injustices throughout his life. His fasts were powerful moral tools to bring attention to causes, pressure authorities, and mobilize public opinion.