“Spider-Man: Homecoming” brings two of Hollywood’s biggest competitors together in an unprecedented partnership that one company hopes will revive its movie business and the other sees serving as a two-hour promotion for its toys.

Sony Pictures Entertainment paid for the $175 million production of the movie, including the writing, shooting, and editing, but the entire process was managed by Walt Disney Co.’s Marvel Studios.

Sony...