KM3NeT is a research infrastructure located in the Mediterranean Sea, that will consist of two deep-sea Cherenkov neutrino detectors. With one detector (ARCA), the KM3NeT Collaboration aims at identifying and studying TeV-PeV astrophysical neutrino sources. With the other detector (ORCA), the neutrino mass ordering will be determined by studying GeV-scale atmospheric neutrino oscillations. The first KM3NeT detection units were deployed at the Italian and French sites between 2015 and 2017. In this paper, a description of the detector is presented, together with a summary of the procedures used to calibrate the detector in-situ. Finally, the measurement of the atmospheric muon flux between 2232-3386 m seawater depth is obtained.