Google Inc. sued Mississippi Attorney General Jim Hood on Friday, seeking to prevent him from enforcing a wide-ranging subpoena that has become entangled in a dispute between Google and Hollywood.

Filed in U.S. District Court for Southern Mississippi, the lawsuit claims that for 18 months, Mr. Hood has threatened to prosecute Google if the company doesn’t block certain content on its websites. Google says that when it didn't agree to Mr. Hood’s demands, the attorney general filed “an enormously burdensome subpoena” in late...