Peak shaving is a strategy used by energy consumers to reduce the amount of energy purchased during peak demand periods, thereby lowering energy costs and reducing strain on the grid. This is achieved through the use of energy storage systems, demand response programs, and load shifting techniques to manage and optimize energy consumption patterns.