Borexino, a liquid scintillator detector at LNGS, is designed for the detection of neutrinos and antineutrinos from the Sun, supernovae, nuclear reactors, and the Earth. The feeble nature of these signals requires a strong suppression of backgrounds below a few MeV. Very low intrinsic radiogenic contamination of all detector components needs to be accompanied by the efficient identification of muons and of muon-induced backgrounds. Muons produce unstable nuclei by spallation processes along their trajectory through the detector whose decays can mimic the expected signals; for isotopes with half-lives longer than a few seconds, the dead time induced by a muon-related veto becomes unacceptably long, unless its application can be restricted to a sub-volume along the muon track. Consequently, not only the identification of muons with very high efficiency but also a precise reconstruction of their tracks is of primary importance for the physics program of the experiment. The Borexino inner detector is surrounded by an outer water-Cherenkov detector that plays a fundamental role in accomplishing this task. The detector design principles and their implementation are described. The strategies adopted to identify muons are reviewed and their efficiency is evaluated. The overall muon veto efficiency is found to be 99.992% or better. Ad-hoc track reconstruction algorithms developed are presented. Their performance is tested against muon events of known direction such as those from the CNGS neutrino beam, test tracks available from a dedicated External Muon Tracker and cosmic muons whose angular distribution reflects the local overburden profile. The achieved angular resolution is 3-5 deg and the lateral resolution is 35-50 cm, depending on the impact parameter of the crossing muon. The methods implemented to efficiently tag cosmogenic neutrons are also presented.