The benchmark closed the month at 176,739. Lower oil prices and easing inflation drove the rally; profit-taking closed it out.