Master and Commander: The Far Side of the World is a 2003 American epic historical action-adventure drama film written, produced and directed by Peter Weir, set in the Napoleonic Wars.