PKR de facto leader Anwar Ibrahim today apologised to the Selangor sultan on behalf of his party if they had offended the ruler.