Washington (CNN) What do spilled ice cream, stranded pirates and cartoon airstrikes have in common? They are all part of a new animated video produced by the Department of Defense that is intended to explain what the US military does and how it is organized.

Featured as part of a revamped Pentagon website that was unveiled Tuesday, the video, which depicts animated pilots dropping bombs into an empty desert and US Marines confronting a pirate on a deserted island, was produced in house by a young service member to illustrate the function of different military branches, a defense official told CNN.

The Pentagon did not provide an estimate of how much the video cost to produce.

Set to a cheery soundtrack, the two-minute clip begins by explaining that war movies tend to "exaggerate what our military does, day in and day out." It then shows a cartoon figure dropping a scoop of ice cream.

From that ice cream spawns a tree depicting the five branches of the military. The video goes on to explain the role of each service branch and how they help protect the US from "bad guys" around the world.

Read More