The TDAQ system of the ATLAS detector ensures that ATLAS records all the events needed for its broad physics program. This not only includes interesting events that could contain new physics but also recording data for e.g. detector calibrations, luminosity and background measurements. I will present how ATLAS gets from the initial detector data fragments to event files with its data acquisition system. In this context I'll present some basic concepts common to all DAQ systems and the different components of the ATLAS DAQ system, together with a description of the ATLAS dataflow. The trigger system is the core component that selects which events are actually written to disk. I'll describe the ATLAS trigger system consisting of a Level 1, a High Level Trigger and the trigger menu that steers the event selection catering to the physics program.