A CCTV system works by capturing and recording video footage through strategically placed cameras. This footage can then be viewed in real-time or at a later time, depending on the type of system used.