Pirates of the Caribbean is set in a fictional historical setting where two empires rule .
The films take place in a science fiction setting ; a world ruled by the British Empire , the East India Trading Company ( based on the real East India Company ) , and the Spanish Empire , with pirates representing freedom from the ruling powers .
Pirates of the Caribbean -LRB-film series-RRB-