A system for automatically filling tablets into tablet containers comprising at least one tablet compartment for receiving tablets comprises: reception means (30) for receiving a patient order containing a patient identification (PAT-ID) and at least one prescription comprising prescription data (REZ) regarding the types of tablets to be taken by the patient and instructions for taking said tablets; allocation means (40) for allocating the prescription data (REZ) and patient identification (PAT-ID) to respective tablet containers (1); at least one automatic tablet dispenser (50) containing supplies of a plurality of tablet types for automatically filling at least one tablet compartment of a respective tablet container, wherein the allocation means (40) or the automatic tablet dispenser (50) is/are designed for determining, from the prescription data (REZ), the number of tablets of the respective types of tablets to be taken by a patient at certain times and for allocating a tablet compartment (2) of a tablet container (1) to each determined time for taking the tablets, and the automatic tablet dispenser (50) is designed for filling the tablets thus determined for each determined time for taking them into the tablet compartment (2) of the respective tablet container (1), which compartment has been allocated.