The strike price at which option buyers, as a group, would lose the most money if the market closed there on expiry day. It is calculated from open interest across all strikes.
Example
NIFTY at 25,840 with max pain at 25,800: if NIFTY expired at 25,800, the most option premium would expire worthless.