California’s attorney general has issued subpoenas to major oil refiners as part of an investigation into whether the companies artificially raised retail gasoline prices in the state, according to people familiar with the matter.

The subpoenas, sent in late May to Tesoro Corp., Chevron Corp., Exxon Mobil Corp. and others, seeks information about trading, maintenance and repair activities at the companies since 2014.

The...