The Sand Pebbles
(1966)

The crew of the gunboat U.S.S. San Pueblo (nicknamed "The Sand Pebble," thus its crew, Sand Pebbles), are caught far inland during a revolution between nationalists and communists in 1920s China.

Various smaller dramas involving various good and bad Chinese, lead to the climax of Holman (Steve McQueen), the ship's new chief engineer and bad-luck Jonah, accompanying the captain (Richard Crenna) and a small landing party to rescue two American missionaries.

The missionaries, however, don't want to leave -- they naively believe their renunciation of all human nationality will keep them safe from the approaching Bolsheviks. They're proved wrong as the idealistic pastor is gunned down.

The outnumbered landing party are trying to get the remaining missionary (Candice Bergen) to freedom when the San Pueblo's captain is killed. This leads Holman to cover for the rest with an assault rifle. 

After they escape, Holman is mortally wounded.  His dying words express his bafflement at the whole situation. The last shot is of the ship sailing away from China.

Thanks Eph!