Like other monarchs of his time, Shivaji needed divine sanction but he didn’t hesitate to break religious rules.